On the difference between the Ui_appearance_selectorde and the ordinary after the method

Source: Internet
Author: User

About iOS contains the following macro definitions Ui_appearance_selector; The method, do not know whether you know its true meaning.

When you set Bartintcolor for your navigationbar, you can use 2 methods (of course only after iOS7 in the Bartintcolor method)
@property (nonatomic,retain) uicolor *bartintcolor Ns_available_ios (7_0) ui_appearance_selector; Default is Nil
1) [[Uinavigationbar appearance] Setbartintcolor:[uicolor Yellowcolor]; Usually written in Appdelegate.
2) [Self.navigationController.navigationBar Setbartintcolor:[uicolor yellowcolor]];//is generally written in the root view of the navigation controller

By looking at the data and personally verifying that the former makes all NAVIGATIONBA instances of your project Bartintcolor the same, the latter only affects the bartintcolor of the navigationbar of a certain navigation controller.

On the difference between the Ui_appearance_selectorde and the ordinary after the method

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.