开发者

Objective C - Accessing UINavigationController from TabController application

开发者 https://www.devze.com 2023-03-26 00:53 出处:网络
How can I access the UINavigationController from the AppDelegate class in a UITabBarController 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

精彩评论

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