2010-10-28 40 views

回答

2

在AppDelegate中

self.tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor grayColor]; 
1

在AppDelegate.m在didFinishLaunching ...方法寫(這會爲整個應用程序更改):

[[UITabBar appearance] setBarTintColor:[UIColor myColor]]; 

或者你可以在ViewController.m的方法寫viewDidLoad:

[self.tabBarController.tabBar setBarTintColor: [UIColor mycolor]]; 
0

您可以使用XIB/Storyboard以及編程方式執行 對於XIB /故事板中選擇選項卡欄控制器比標籤,你可以看到所有的選項來改變標籤欄或標籤欄視圖屬性見附圖圖像Image attached here

對於編程: 用於標籤欄的色調和背景

[[UITabBar appearance] setTintColor:panelColor]; 
[[UITabBar appearance] setBarTintColor:[UIColor lightGrayColor]];