<span id="Label3"></p><p><p>Tabbar the color When selected</p></p><p><p>Tabbarcontroller.tabbar.tintcolor=[uicolor whitecolor];</p></p><p><p></p></p><p><p>upper right corner number</p></p><p><p>You can add a lable to change the size of the Origin.</p></p><p><p>Use NOTIFICATION/KVO to change the number above</p></p><p><p>[email protected] "";</p></p><p><p></p></p><p><p>Tabbaritem Get Method:</p></p><p><p>[[[tabbarcontroller tabBar] items] objectatindex:i];</p></p><p><p></p></p><p><p>Set the tab bar background image in 2 ways</p></p><p><p></p></p><p><p>1. [tab setbackgroundimage:[uiimage imagenamed:@ "navigation bar @2x.png"]];//set background</p></p><p><p></p></p><p><p>2. UIImage *image=[uiimage imagenamed:@ "navigation Bar @2x.png"];</p></p><p><p>Uiimageview *imageview = [[uiimageview alloc] initwithframe:</p></p><p><p>CGRectMake (0, -15,tab.frame.size.width, tab.frame.size.height+15)];//relative Position Modification</p></p><p><p>Imageview.image =image;</p></p><p><p>[tab Insertsubview:imageview atindex:0];//inserted Position</p></p><p><p></p></p><p><p>IOS Tabbar background, upper right corner number, Tabbar Get method Summary</p></p></span>
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.