// 第一種方式 // [[UITabBar appearance] setBarTintColor:[UIColor blackColor]]; // [UITabBar appearance].translucent = NO; // 第二種方式 UIView *view = [[UIView alloc]init]; view.backgroundColor = [UIColor redColor]; view.frame = self.tabBar.bounds; [[UITabBar appearance] insertSubview:view atIndex:0]; // //還有第三種方法就是使用背景圖片: // [[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"tabBarBackgroundImage"]]; // [UITabBar appearance].translucent = NO;