I have a UINavigationController that pushes a view controller 3 levels down. I am trying to access the story board from the third UIViewController and I can't. Is there a global way in which I can access the storyboard from any UIViewController?
You should be able to access the current storyboard through the storyboard
property of any View controller. Ex.:
self.storyboard;
EDIT
In the event that self.storyboard
is not set for some reason, you can always get the storyboard by calling
+ (UIStoryboard *)storyboardWithName:(NSString *)name bundle:(NSBundle *)storyboardBundleOrNil
那么thirdViewController.navigationController.storyboard
呢?
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.