NavigationController pushViewController problems.

Posted by Jacek on Stack Overflow See other posts from Stack Overflow or by Jacek
Published on 2010-05-15T09:26:11Z Indexed on 2010/05/15 9:34 UTC
Read the original article Hit count: 442

Hello.

I have created new a view controller in my project (ActivateController). I have added it to the interface of the parent view controller (PrefsViewController):

#import <UIKit/UIKit.h>
#import "ActivateController.h"

@interface PrefsViewController : UIViewController <UITextFieldDelegate> {
 ActivateController *activateController;
}
-(IBAction)pressedActivate;
@property(nonatomic,retain) IBOutlet ActivateController *activateController;
@end

I have also added it to parent's controller nib (and changed it type to ActivateController), and connected it to IBOutlet ActivateController.

But still, when I perform (on pressedActivate):

[self.navigationController pushViewController:activateController animated:YES];

Nothing happens. I have done it successfully many times before. What might be wrong?

P.S. pressedActivate is executed for sure (I used NSLog to check).

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uinavigationcontroller