我是 iOS 开发的新手。我想在 xcode 5 中更改所选标签栏项目的色调颜色。
我把它放在 TabBarController.h 中:
@property(nonatomic, retain) UIColor *selectedImageTintColor
然后我将此代码放入 .m 文件中并在 View 下加载:[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
但什么也没发生?我想在 ios 7 的 xcode 5 中更改所选标签栏项目的色调颜色。感谢您的帮助,抱歉我的英语不好 :(
最佳答案
是的,肯定是坏了。您可以改用[self.tabBar setSelectionIndicatorImage:[UIImage imageNamed:@"insert your image name here"]]
。它将直观地让用户知道他们在哪个选项卡上。
关于colors - selectedimagetintcolor 方法 xcode 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18186046/