简体   繁体   English

如何在ios6中更改工具栏图像

[英]how to change toolbar image in ios6

i'm pretty new to iOS programming. 我是iOS编程的新手。 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. 如果要在代码中创建UITabBarController,请参阅UITabBarItem本身的方法。 Specifically, finishedSelectedImage and finishedUnselectedImage 具体来说, finishedSelectedImagefinishedUnselectedImage

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. 如果要在Interface Builder中创建UITabBarController,请在“属性”检查器中查找“图像”下拉列表,同时选中“选项卡栏项”。

在此输入图像描述

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. 这是指向如何更改uitabbar项目的图像和颜色甚至标签栏本身的ray教程的链接。 hope it help you. 希望它对你有所帮助。 also you can explore ray's site for more info in ios development . 您还可以在ios开发中探索ray的网站以获取更多信息。 it has been very helpful to me. 它对我很有帮助。 happy coding. 快乐的编码。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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