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

  • SEARCH
  • Home
  • 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 8351491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:38:46+00:00 2026-06-09T08:38:46+00:00

I have a storyboard and using segues to navigate between views I am using

  • 0

I have a storyboard and using segues to navigate between views

I am using the following code

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    if ([[segue identifier] isEqualToString:@"thestring"]) {
        [[segue destinationViewController] function1:argument1:argument2];
        [[segue destinationViewController] function2:argument1:argument2];

    }
}

for some reason it is recognizing function1 as a member of the destination view controller but not function 2 , it displays me the current error:

no known instance method for selector 'function2'

function2 is assigned as a public function of the destination view controller (with a “-” before it) and it is also used inside the code of the destination view controller.

any reason why it does not detect it ?

Thanks

EDITED

the header declaration is as follows

-(void)function2:(NSString*)argument1:(NSString*)argument2;
  • 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-09T08:38:50+00:00Added an answer on June 9, 2026 at 8:38 am

    Use a cast to tell the compiler what class destinationController is actually an instance of.

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

Sidebar

Related Questions

I have been using a storyboard, and I have not gotten into the code
I'm using storyboard for the UI and I have the following: A login window
I have the following code to my UIViewController class implementation: - (void)viewDidLoad { CustomUITableView
I did two sample applications in ios.Both applications i have done using storyboard.Then after
Using storyboard, I have a table view controller containing multiple dynamic prototype cells. One
I have this iPad app using Storyboard. There are some file that are marked
Im using Storyboard for most screens in my iPhone app. However, I have one
I am building an app using storyboard. I have added a table view to
I'm trying to design my app's interface in IB using a storyboard and have
I'm working on an iPhone application. I'm using Storyboard. I wanted to have one

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.