在Xcode 5 Dev Preview 2中,我能够执行以下操作:
[[UITabBar appearance] setTintColor:[UIColor whiteColor]];
//所选图像和文本的颜色(白色)
在Xcode 5 Dev Preview 3中,同样的代码行会抛出异常(见下文)。异常表明我可能想使用'barTintColor
' - 但我不想这样做 - 因为这是整个UITabBar的颜色。如何设置UITabBar中所选图像和文本的颜色?
Xcode 5 Dev Preview 3中的新异常:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-setTintColor: is not allowed for use with the appearance proxy. Perhaps you want to use the barTintColor property.'
谢谢你