Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 18, 2011, 03: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 08:57 AM. Reason: Please use [code] tags.
pitchai.pazhani is offline   0 Reply With Quote
Old Jan 18, 2011, 09:51 AM   #2
cnstoll
macrumors regular
 
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
unrecognized selector sent to instance ** plz help XcodeNewb iPhone/iPad Programming 3 Apr 5, 2009 03:03 AM
unrecognized selector sent to instance Boneoh Mac Programming 2 Mar 18, 2009 05:30 PM
Unrecognized selector sent to instance ERROR using UITabBarController roeik iPhone/iPad Programming 12 Dec 31, 2008 12:06 PM
unrecognized selector sent to instance XXXX 'NSInvalidArgumentException' abohak iPhone/iPad Programming 3 Aug 14, 2008 10:46 AM
unrecognized selector sent to instance scriptnoob Mac Programming 2 Jul 26, 2008 09:37 AM


All times are GMT -5. The time now is 08:44 PM.

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

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