开发者

Having more than one NavigationControllers in one application in iPhone?

I want to use TabBar and wnat to also have more than one views.

But then is it possible to have one navigationController for each views?

I want keep track of views in each of them, and ofcourse it should display different navigationBar and views when I tab a new Tabbar item.

Is that possible? I could give it a try but I don开发者_C百科't want to waste time. So if it's possiblt, I'm going to start to work.

Thanks to any advice.


Short answer, yes, it's possible. :)

Longer answer: For each of the UIViewControllers, you would instantiate a UINavigationController and set the UIViewController as the root view using initWithRootViewController:. You would then pass these UINavigationControllers into the UITabBarController by setting the viewControllers property.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜