简体   繁体   中英

Add a new tab for a UITabBarController to another storyboard

I have a different storyboard for a tab in my UITabViewController. How to I connect it?

You can initialize view controller from any storyboard (do not forget to initialize storyboard first) using:

- (id)instantiateViewControllerWithIdentifier:(NSString *)identifier;

And set required view controllers using UITabBarController method

- (void)setViewControllers:(NSArray *)viewControllers animated:(BOOL)animated;

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