开发者

What do I do if I want UINavigationController functionality without a navigation controller?

I know that a UINavigationController has good view pushing methods. But let's say that I don't want to use a UINavigationController because I don't want the bar on the top of the screen. Is there a specific way to push a开发者_JAVA百科nd pop views as I want them?

Also, when should I use presentModalViewController and when shouldn't I?

Thanks, Anthony

UPDATE:

What about adding a subview to a view?


You can always use

[navigationController setNavigationBarHidden:YES animated:NO];

or set it via IB.

If you have a navigation structure of depth 2 or more, it is always right to use a UINavigationController object but when you have only two related views where one of them supplements the other, you can use a modal view controller.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜