Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:06:28+00:00 2026-06-05T19:06:28+00:00

I’m learning Objective-C but I’m stuck at this point where it comes to multiple

  • 0

I’m learning Objective-C but I’m stuck at this point where it comes to multiple view controllers. I learned that if you have multiple views on your storyboard, you have to make a separate file (e.g. ViewTwoControllor.h and .m) and link these files to your views by clicking on them and in the panel on the right on the third tab you have to type in ‘ViewTwoController’. I get it to e.g. open a website in Safari by clicking on an button. But I want Twitter integration in the second view.

Twitter iOS 5 integration goes fine until I put it on the second view. I use the following code for the button.

TWTweetComposeViewController *tweet = [[TWTweetComposeViewController alloc]init];

[tweet setInitialText:@"This is a pretty awesome application bro."];
[tweet addURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://www.stackoverflow.com"]]];

[self presentedViewController:tweet animated:YES completion:nil];

Twitter framework is included and IBAction etcetera is fine either.
This works in a single-view app but now I get the following error:
“Receiver type ‘ViewTwoController’ for instance message does not declare a method with selector ‘presentedViewController:animate:completion:’.

Someone in the room who knows how to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:06:29+00:00Added an answer on June 5, 2026 at 7:06 pm

    You probably want presentModalViewController, not presentedViewController

    Take a look a the documentation for UIViewController. You see that you have two options in this case: presentViewController:animated:completion and presentModalViewController:animated

    If you’re new to Objective-c, a selector is essentially just a method name. The error message is telling you what the problem is: you’re trying to send a message (the selector, in this case presentedViewController:animated:completion) to an object that doesn’t know how to respond to that message (in this case, an instance of ViewTwoController). This suggests that either the method you’re calling is incorrect, or the object you’re trying to call the method on isn’t a subclass of what you think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.