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