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 6136539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:36:56+00:00 2026-05-23T17:36:56+00:00

something isn’t working right and i can’t work out why this isn’t working to

  • 0

something isn’t working right and i can’t work out why this isn’t working to load my other nib, this currently works

#pragma mark - Flipside View

- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller
{
    [self dismissModalViewControllerAnimated:YES];
}

- (IBAction)showInfo:(id)sender
{    
    FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideViewController" bundle:nil];
    controller.delegate = self;
    controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:controller animated:YES];
}

whilst i’ve done the exact same thing here on the same MainViewController.m and had no success whilst doing it

#pragma mark - News View

- (void)newsViewControllerDidFinish:(NewsViewController *)controller
{
    [self dismissModalViewControllerAnimated:YES];
}

- (IBAction)showNews:(id)sender
{    
    NewsViewController *controller = [[NewsViewController alloc] initWithNibName:@"NewsViewController" bundle:nil];
    controller.delegate = self;
    controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:controller animated:YES];
}

so i think there is something wrong with my header file which looks like this

    #import "FlipsideViewController.h"
#import "NewsViewController.h"

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, NewsViewControllerDelegate>

- (IBAction)showInfo:(id)sender;
- (IBAction)showNews:(id)sender;

@end

I can’t work out why it’s not working, any help would be appreciated.

Error from output:

This GDB was configured as “x86_64-apple-darwin”.Attaching to
process 2147.
2011-07-08 12:24:09.845 Danny[2147:ef03] -[NewsViewController
setDelegate:]: unrecognized selector
sent to instance 0x68a62b0
2011-07-08 12:24:09.847 Danny[2147:ef03] * Terminating app
due to uncaught exception
‘NSInvalidArgumentException’, reason:
‘-[NewsViewController setDelegate:]:
unrecognized selector sent to instance
0x68a62b0’
*
First throw call stack:
(0xf8a600 0x112252e 0xf8d550 0xeeb4cf 0xeeb292 0x2a36 0xf8bd78
0x18cc5 0x18c5a 0xbdbd4 0xbe09d
0xbd368 0x3e004 0x3e22d 0x24990
0x181a7 0x1369886 0xf59d11 0xebbc9b
0xeba4b1 0xeb993c 0xeb9868 0x1367fef
0x13680b4 0x160c4 0x2009 0x1f75)
terminate called throwing an exceptionsharedlibrary
apply-load-rules all
Current language: auto; currently objective-c
(gdb)

  • 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-05-23T17:36:56+00:00Added an answer on May 23, 2026 at 5:36 pm

    What is the delegate method for the view controller? Check if the declaration of the delegate method is the same. Make sure you have set the delegates properly

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

Sidebar

Related Questions

Trying out databinding for the first time, but something isn't working. I'm trying to
first time trying to deal with this call_user_func_array, but something isn't working, since I
I would try something like this but it isn't allowed. function GetDynamicModulesProperties() { var
I know this isn't strictly speaking a programming question but something I always hear
Maybe I missed something, but I cant figure out why Visual Studio 2008 isn't
I'm looking to compile my Delphi 2010 project using MSBuild, but something isn't right,
I have kind of a weird problem .. Something that isn't working on ff
I'm just starting to play with MVC, and something isn't clicking with me. I
I'm trying to achieve something google isn't able to give answer. I'm trying to
When I call a static method like: Something.action(); Since a instance isn't created how

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.