Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 18, 2011, 04:50 AM   #1
pitchai.pazhani
macrumors newbie
 
Join Date: Jan 2011
Error-[UIViewController NextView:]: unrecognized selector sent to instance

Hi,

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.
________________________________________________________

Code:
@interface ScreenFourViewController : UIViewController {

}
-(IBAction)NextView:(id)sender;

@end
_______________________________________________________


Code:
@implementation ScreenFourViewController

-(IBAction)NextView:(id)sender
{
	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.

Last edited by dejo; Jan 18, 2011 at 09:57 AM. Reason: Please use [code] tags.
pitchai.pazhani is offline   0 Reply With Quote
Old Jan 18, 2011, 10:51 AM   #2
cnstoll
macrumors 6502
 
Join Date: Aug 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.
cnstoll is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
"Unrecognized selector" error when attempting to remove an object while in a for loop moonman239 iPhone/iPad Programming 18 Feb 26, 2014 08:29 AM
Resolved: [_NSCFNumber setTableViewStyle:] unrecognized selector set to instance moonman239 iPhone/iPad Programming 2 Nov 18, 2013 07:14 PM
Resolved: Unrecognized selector sent to instance Blakeasd iPhone/iPad Programming 2 Jul 2, 2013 09:01 PM
unrecognized selector sent to instance with Coredata and Category of NSMangedObject roeik iPhone/iPad Programming 5 Sep 5, 2012 06:40 AM
unrecognized selector larswik iPhone/iPad Programming 6 Jun 20, 2012 11:46 PM

Forum Jump

All times are GMT -5. The time now is 06:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC