Ios-storyboard Controller switch push (2)

Source: Internet
Author: User

Push refers to the head for navigation, the bottom for the content of the controller, click on the top of the return to jump between the various interfaces, is jumping in the page from the First>second page

As to how to set up the project, storyboard not repeat it. Push more than modal a controller, each page of the jump (code) is actually through the controller jump. The controller is

Uinavigatorviewcontroller or its subclasses.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvcxeyoduwmtyxmjc=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast "width=" height= "328" >

and set its rootviewcontroller after setting the Uinavigatorviewcontroller. This is equivalent to the Uinavigatorviewcontroller maintaining a stack. and its rootviewcontroller is

Bottom of the stack. Link two uiviewcontroller just need to change the previous modal option to push. When returned, the code needs to set its Pop method off the stack.



From this. Each page jumps by clicking the button to jump directly. How the header information can be changed simply by selecting the Barbuttonitem inside the Viewcontroller.


Ios-storyboard Controller switch push (2)

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: info-contact@alibabacloud.com 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.