xcode storyboard merger

Development requires manufacturers to merge the demo, which has a configuration page is storyboard do not bother to re-do the layout, copy and paste the habit of not sticking only to find from a storyboard to another. Baidu a lot better describe the contents of looking at a headache. Himself tried, found actually very simple.

1. to demo the main.storyboard renamed maindemo.storyboard, copied to the project directory

copy
Figure 1. The first step: Copy

 

2. Add into the project

add
Figure 2. Step two: add to a project

 

3. Call:

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Maindemo" bundle:nil];

XXViewController *vc = [sb instantiateViewControllerWithIdentifier:NSStringFromClass([XXViewController class])];

vc.hidesBottomBarWhenPushed = YES;

[self.navigationController pushViewController:vc animated:YES];

Guess you like

Origin blog.csdn.net/prettynacl/article/details/91125855