如何在iOS 7中更改UITabBar外观
使用iOS 6我可以使用此代码自定义如何在iOS 7中更改UITabBar外观,ios,objective-c,ios7,Ios,Objective C,Ios7,使用iOS 6我可以使用此代码自定义uitabar: [[UITabBar appearance] setSelectedImageTintColor:[UIColor colorWithRed:(39/255.0) green:(205/255.0) blue:(222/255.0) alpha:1]]; 但是我不能使用iOS 7。我被迫使用两种类型的图片来执行此操作。尝试以下操作: UIImage *tabBarBackground = [UIImage imageNamed:@"Cust
uitabar
:
[[UITabBar appearance] setSelectedImageTintColor:[UIColor colorWithRed:(39/255.0) green:(205/255.0) blue:(222/255.0) alpha:1]];
但是我不能使用iOS 7。我被迫使用两种类型的图片来执行此操作。尝试以下操作:
UIImage *tabBarBackground = [UIImage imageNamed:@"CustomUITabbar.png"];
[[UITabBar appearance] setBackgroundImage:tabBarBackground];
[[UITabBar appearance] setTintColor:[UIColor whiteColor]];
摘自:作者:试试这个:
UIImage *tabBarBackground = [UIImage imageNamed:@"CustomUITabbar.png"];
[[UITabBar appearance] setBackgroundImage:tabBarBackground];
[[UITabBar appearance] setTintColor:[UIColor whiteColor]];
摘自:作者: