基本上,我已经创建了一个用于视图所在的底层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.