The difference between Pushviewcontroller and Presentviewcontroller

Source: Internet
Author: User

I use navgation and tabbar to achieve page jump generally we are through the Pushviewcontroller and Presentviewcontroller to achieve the page jump first look at the navgation push a page [NAVVC PUSHVIEWCONTROLLER:SAFARIVC Animated:yes];Code Execution Effect [NAVVC PRESENTVIEWCONTROLLER:SAFARIVC Animated:yes Completion:nil];Code Execution EffectAs can be seen, the use of navigation push out of the interface is reserved navigation, and the use of present out of the VC interface is not navigation; Take a look at the following TarBar [TABBARVC PRESENTVIEWCONTROLLER:SAFARIVC animated:yes Completion:nil];The view that uses the Tabbar present also does not have the navigation bar or the navigation controller (the picture display navigation Controller is Safar)Tabbar cannot use push-out views, which means that push can only be used under navigation, and Presen can be invoked on any of the view controllers

The difference between Pushviewcontroller and Presentviewcontroller

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.