首页 > 代码库 > How to use storyboard to jump?

How to use storyboard to jump?

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... ...

How to use storyboard to jump?