简体   繁体   English

更改UITabBar上的图像

[英]Change the image on UITabBar

I a complete beginner when it comes to iOS development. 在iOS开发方面,我是一个完全的初学者。 I have recently downloaded a template application so I could learn the basics. 我最近下载了一个模板应用程序,所以我可以学习基础知识。 I am trying to figure out how to change the photo/image on the bottom UI bar. 我试图弄清楚如何更改底部UI栏上的照片/图像。 I have done so much research to no avail. 我做了这么多研究无济于事。

在这里,您可以找到答案,UITabBar中的一个类别,允许您以编程方式设置背景图像。

In iOS 5, UITabBar (and many other UIKit controls) follow a standard procedure for customizing their appearance. 在iOS 5中,UITabBar(以及许多其他UIKit控件)遵循标准过程来自定义其外观。 Here is a good tutorial on how it works: 这是一个很好的教程如何工作:

http://www.raywenderlich.com/4344/user-interface-customization-in-ios-5 http://www.raywenderlich.com/4344/user-interface-customization-in-ios-5

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

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