simple question of pushViewController
messagecontroller is nothing but object of initialize nib file.
[self.navigationController pushViewController:messageController animated:YES];
this statement executes in normal condition
this statement also works on state maintainace testing , this line executes p开发者_StackOverflowroperly but not open new view ,why?
Calling this method call does not push a new view? If this is the question you should ask yourself some questions:
Is
self
having anUINavigationController
? Make sureself
is a view controller inside a navigation controller.Is
messageController
initialized correctly? Like this for example (if messageController is an ivar):messageController = [[MyViewControllerClass alloc] initWithNibName:@"MyViewControllerClassNibName" bundle:nil];
精彩评论