How to use storyboard to jump ?, Storyboardjump
How to use storyboard?
Between the controller and the contrller. We can use it to jum. You can use it for online operations and use code.
How to use code to jum?
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"yourStroyboardName" bundle:nil];// Instantiates and returns the view controller with the specified identifierUIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"storyboardId"];[self.navigationController pushViewController:viewController animated:YES];
On the way to access the controller. We can also use the following methods.
// return the initial view controller in the storyboardUIViewController *viewController = [storyboard instantiateInitialViewController];
To be continues ......
IOS development: How does a storyboard return the view mode from the code editing mode?
Select the. storyboard file, right-click, open as, interface Builder
How do I add a new storyboard to a project, and how do I switch between storyboards?
StoryboardWithName: bundle: Method of the UIStoryboard. Load the handler * storyboard = [UIStoryboard storyboardWithName: storyboardName bundle: nil]; MainViewController * mainViewController = [storyboard comment]; view original posts