An important "method" for iPhone navigation controllers"

Source: Internet
Author: User

 

An important "method" for iPhone navigation controllers"

The following text is reproduced from: http://c.gzl.name/archives/tag/navigationcontroller

 

 

Navigation controller is one of the most important iPhone components. The following are some "key methods"

 
1. pushviewcontroller:Viewcontroller animated:Bool

(Load View Controller)
-Add and display the specified view controller, followed by: whether the view is animated

 

 

 

 
2. popviewcontrolleranimated:Bool

(The current view controller is displayed)
-The previous view is displayed on the left.

 
 
3. poptoviewcontroller:Viewcontroller animated:Bool

(To the specified View Controller)
-Return to the specified view controller, that is, not only one

 

 
4. poptorootviewcontrolleranimated:Bool

(To the Root View Controller)
-For example, if you have a "home" key, this method may be implemented.

 

 
5. setnavigationbarhidden:BoolAnimated:Bool

(Set whether the navigation bar is displayed)

-If you want to hide the navigation bar, this is the place.

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.