Error-[UIViewController NextView:]: unrecognized selector sent to instance

Discussion in 'iOS Programming' started by pitchai.pazhani, Jan 18, 2011.

  1. pitchai.pazhani, Jan 18, 2011
    Last edited by a moderator: Jan 18, 2011

    pitchai.pazhani macrumors newbie

    Jan 18, 2011

    I am developing an Universal Application. I have tabcontroller in my application and each tab displaying different views.

    Now the problem is, when I have a button in any views, it displays the above error.

    @interface ScreenFourViewController : UIViewController {

    @implementation ScreenFourViewController
    	NSLog(@"Start button pressed");	}

    What am I doing wrong? Please help me.

    Also, I want to change the views of a particular tab, when I click the next button from the current view.
  2. cnstoll macrumors 6502

    Aug 29, 2010
    Looks to me like you're trying to send "nextView" to UIViewController.... You should probably be sending it to an instance of ScreenFourViewController. Or, if you're trying to call NextView from within ScreenFourViewController...send NextView to self.

Share This Page