开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜