setting tint color for selected tab in UITabBar

Viewed 17590

In Xcode 5 Dev Preview 2, I was able to execute the following:

[[UITabBar appearance] setTintColor:[UIColor whiteColor]]; //the color of the selected image and text (white)

In Xcode 5 Dev Preview 3, the same line of code throws an exception (see below). The exception indicates that I may want to use 'barTintColor' - but I do not - as this is the color of the overall UITabBar. How can I set the color of the selected image and text in a UITabBar?

The new exception in 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.'

Thank you

2 Answers
Related