How to use storyboard to jump ?, Storyboardjump

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.