Push UIViewController onto another
I can't seem to push a UITableViewController onto a UIViewController using the fo开发者_开发问答llowing code:
[self.navigationController pushViewController:cardsViewController animated:YES];
The following code works for modally presenting the same view:
[self presentModalViewController:cardsViewController animated:YES];
Does anyone know what I might be doing wrong here?
Thanks in advance. Ricky.
Ricky,
Try this code:
if(self.navigationController == nil) NSLog(@"I am nil");
It will display "I am nil" in the console.
精彩评论