iOS projects can co-locate pages of the same orchestration into a single storyboard, and the project will inevitably contain multiple stroryboard that can be used to jump through the different business process pages of the project.
Implementation ideas:
1, add two storyboard to project (projects);
2, in the first storyboard, delete the original scene, add a Navigationcontroller again, and then add a button to any view Controller scene. and add a button to the Touchupinside event;
The following code is added to the 3,touchupinside event:
1 uistoryboard *secondstroyboard=[uistoryboard storyboardwithname:@ "Storyboard2" Bundle:nil]; 2 3 uiviewcontroller *test2obj=[secondstroyboard instantiateviewcontrollerwithidentifier:@ " Test2"]; 4 5 [Self.navigationcontroller pushviewcontroller:test2obj Animated:no];
Simply analyze the code:
First, you need to specify Uistoryboard;
Next, instantiate a Uiviewcontroller object (where "Test2" is the storyboardid of Viewcontroller);
Finally, use Self.navigationcontroller to jump to the specified storyboard page.