简体   繁体   中英

How do I access Navigation Controller declared in AppDelegate from view controller?

基本上,我已经创建了一个用于视图所在的底层UINavigationController 。我可以通过UIViewController viewDidLoad方法在其中创建元素,但是无法访问UINavigationController

尝试使用self.navigationController

在ViewDidLoad中,您可以使用self.navigationController来访问导航控制器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM