开发者

Objective C - Accessing UINavigationController from TabController application

How can I access the UINavigationController from the AppDelegate class in a UITabBarController application?

Like when I'm in a section within the UITabBarController item, I can do self.navigationController.

However, that doesn't exist in the AppDelegate.

Thank 开发者_开发百科you,

Tee


There's no correspondence between navigation controller and app delegate the way there is between navigation controller and the view controllers under it. If your app delegate sets up the navigation controller for a given tab item, it can certainly keep a reference to it in a property or ivar, but you'll need to manage that yourself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜