jjzjj

setSelectedImageTintColor

全部标签

ios - setTintColor 和 setSelectedImageTintColor 不能一起正常工作

我正在尝试更改我的自定义标签栏的标签栏项目的图标颜色,但是setSelectedImageTintColor和setTintColor不能一起工作。如果那个代码顺序是[[UITabBarappearance]setSelectedImageTintColor:[UIColorgreenColor]];[[UITabBarappearance]setTintColor:[UIColorredColor]];然后输出是如果代码顺序是[[UITabBarappearance]setTintColor:[UIColorredColor]];[[UITabBarappearance]setSel

ios - setSelectedImageTintColor 在 iOS 7 中不起作用

我正在尝试在iOS7中setSelectedImageTintColor,但它不起作用。这是我在didFinishLaunchingWithOptions下的AppDelegate.m中的代码UITabBarController*tabBarController=(UITabBarController*)self.window.rootViewController;UITabBar*tabBar=tabBarController.tabBar;for(UITabBarItem*itemintabBar.items){UIImage*image=item.image;UIImage*co

ios - setSelectedImageTintColor 在 iOS 7 中不起作用

我正在尝试在iOS7中setSelectedImageTintColor,但它不起作用。这是我在didFinishLaunchingWithOptions下的AppDelegate.m中的代码UITabBarController*tabBarController=(UITabBarController*)self.window.rootViewController;UITabBar*tabBar=tabBarController.tabBar;for(UITabBarItem*itemintabBar.items){UIImage*image=item.image;UIImage*co