Stroyboard can be seen as a collection of management View images. That is to say, there is no limit on one Storyboard in an iOS project.
Therefore, in your APP project, you can place similar views in the same APP to form a group to facilitate functional management.
1. Prepare two storyboards in the project
Create two storyboards in an IOS project.
2. In the first StoryBoard, we pulled a Navigation Template and pulled a Button in the [Main View Controller] View.
3. In the second StoryBoard, we also pulled a Navigation template.
In the screen, pull a Label and change the text to Storyboard2. This is only used to identify the image we are currently taking.
4. In the Botton in the first StoryBoard screen, we need to write the program code below in the [TouchUpinside] event of the button.
UIStoryboard * secondStoryBoard = [UIStoryboard storyboardWithName: @ "Storyboard2" bundle: nil];
UIViewController * test2obj = [secondStoryBoard instantiateViewControllerWithIdentifier: @ "test2"]; // test2 is the StoryboardId of viewcontroller
[Self. navigationController pushViewController: test2obj animated: YES];
The first step is to specify the UIStoryboard object. Here we will point to the second Storyboard in the project.
Next, we need to create a New Controller object. This is the next View page to which you want to Push the object.
Finally, use self. navigationController to push the webpage to the next page.