我有UITabBarController
与UITabBar
它有三个UITabBarItem
。 项目是与故事板。我如何为每个UITabBarItem
设置不同的图像?UITabBar图像与故事板的UITabBarItem
我想要做这样的事情:
TabBarItem1 -> image1_unselected and image1_selected
TabBarItem1 -> image2_unselected and image2_selected
TabBarItem1 -> image3_unselected and image3_selected
编辑:
也许我没有精确写的,但我想设置定制图像并制作UITabbar
与自定义图形。类似于“查找我的朋友”应用中的UITabbar
。
也许我没有精确写在添加了
AppDelegate.m
下面的代码,但我想设置自定义图像并进行uitabbar与自定义图形。像“查找我的朋友”应用程序中的uitabbar。 – murzynpl 2012-07-05 10:46:56嗯,苹果喜欢保持事物的一致性,所以要以你想要的方式定制它,你必须创建自己的自定义TabBar。看看这些教程 - http://www.rumex.it/2010/07/how-to-customise-the-tab-bar-uitabbar-in-an-iphone-application-part-1-of-2 /&http://idevrecipes.com/2011/01/04/how-does-the-twitter-iphone-app-implement-a-custom-tab-bar/ – 2012-07-05 11:05:57