我有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