NavigationController pushViewController problems.
- by Jacek
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).