Wednesday, 7 August 2013

How to block UIAppearance proxy for some control

How to block UIAppearance proxy for some control

I set custom appearance to some of my UI classes.
[[UIBarButtonItem appearance] setTintColor:someColor];
...
[[UINavigationBar appearance] setBackgroundImage:someImage
forBarMetrics:UIBarMetricsDefault];
So when i create UIBarButtonItem's or UINavigationBar's objects in my
application they will have defined appearance.
But if want some object to have standart appearance(Not to use defined by
proxy), I need to set all it's properties to default values, manually.
So the quesion is: Is there any way to block using UIAppearance for some
object?
Thank you.

No comments:

Post a Comment