简体   繁体   中英

how to change toolbar image in ios6

i'm pretty new to iOS programming. How do i change the image for each of the items in toolbar as shown on the picture below. The toolbar is on the bottom of the screen. Thanks in advance. 工具栏

If you are creating your UITabBarController in code, see the methods on UITabBarItem itself. Specifically, finishedSelectedImage and finishedUnselectedImage

If you are creating your UITabBarController in Interface Builder, look for the "Image" dropdown in the Attributes inspector, while you have the Tab Bar Item selected.

在此输入图像描述

if you want to change or modify the tab bar items in anyway it is very possible. here is the link to ray's tutorial of how to change the images and colors of the uitabbar items and even tab bar itself. hope it help you. also you can explore ray's site for more info in ios development . it has been very helpful to me. happy coding.

http://www.raywenderlich.com/21703/user-interface-customization-in-ios-6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM