开发者

detailViewController.navigationController is always nil

开发者 https://www.devze.com 2023-03-16 15:07 出处:网络
Using Xcode 4.x I created a SplitView project for iPad From RootViewController I\'m trying to display a开发者_开发知识库 TableView inside detailView by doing this:

Using Xcode 4.x I created a SplitView project for iPad

From RootViewController I'm trying to display a开发者_开发知识库 TableView inside detailView by doing this:

[detailViewController.navigationController pushViewController:slc animated:YES];

This does not work for me and upon investigation I find that detailViewController.navigationController is always nil

I don't know why this is nil or how to go about making this not nil.

appreciate any help I can get

thanks Dhoti


Try this:

[self.navigationController pushViewController:slc animated:YES];
0

精彩评论

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