开发者

Push UIViewController onto another

开发者 https://www.devze.com 2023-01-11 16:39 出处:网络
I can\'t seem to push a UITableViewController onto a UIViewController using the fo开发者_开发问答llowing code:

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

精彩评论

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