The difference between Settintcolor and Setbartintcolor

Source: Internet
Author: User

The original is transferred from the blog-http://blog.sina.com.cn/u/2805226174

Before IOS7, Settintcolor is able to modify the background color, ios7 after modifying the background color can only be used Setbartintcolor. So use the judging area to separate:

1 if ([[Uidevice Currentdevice] systemversion]<7.0) {2  3    } Else 4        {56        }

Here only look at the effect of iOS7 after Navigationbar:

1 . [Self.navigationController.navigationBar Settintcolor:ne_barcolor_white];    [Self.navigationController.navigationBar Setbartintcolor:ne_barcolor_orange];

Can see my macro definition is white, one is orange, here the two-dimensional code icon background color is transparent, set settintcolor after its own color into white.

2.

1 [Self.navigationController.navigationBar settintcolor:ne_backcolor_red]; 2     [Self.navigationController.navigationBar Setbartintcolor:ne_backcolor_yellow];

The red icon, bar's background color is yellow.

The difference between Settintcolor and Setbartintcolor

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: 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.