[英]custom UITabBar selected tab image, iOS 5 and up
我正在創建一個自定義的UITabBarController
,我tabBar
這種方式自定義tabBar
:
self.tabBar.backgroundImage = [UIImage imageNamed:@"imgTabBarBeta.png"];
然后我以這種方式更改選擇器指示器:
self.tabBar.selectionIndicatorImage = [UIImage imageNamed:@"imgTabBarSegmentSelected.png"];
但顯然它成為我所有4個標簽的選定圖像,我希望每個標簽都有自己的selectionIndicatorImage
。
關於如何實現這種事情的任何想法? 提前致謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.