Hi !
Why wont this work?
View1 loads View2.
In view2:
- (void) goToView {
View3 *plainText = [[View3 alloc]
initWithNibName:@"View3" bundle:nil];
[self.navigationController pushViewController:plainText animated: NO];
[plainText release];
}
- (void)viewDidLoad {
[self goToView];
[super viewDidLoad];
}
This will not trigger navigationController to pushView, but if I add a button and setAction (goToView) it works perfectly. What kind of problem do I missing here?
Regards