How multiple Storyboard (storyboard) with the code organization

1. Create a Storyboard named OtherStoryboard.storyboard

2. Use the following code is loaded

UIStoryboard *newStoryboard = [UIStoryboard storyboardWithName:@"OtherStoryboard" bundle:nil];

3. Use the scene identifier to obtain view controller

instantiateViewControllerWithIdentifier:

(Scene identifier is your view on an identity (identity inspector) set in the Storyboard ID)

 

Reproduced in: https: //www.cnblogs.com/davidgu/p/4938651.html

Guess you like

Origin blog.csdn.net/weixin_34217711/article/details/93803037