ios - How to block UIAppearance proxy for some control -
i set custom appearance of ui classes.
[[uibarbuttonitem appearance] settintcolor:somecolor]; ... [[uinavigationbar appearance] setbackgroundimage:someimage forbarmetrics:uibarmetricsdefault];
so when create uibarbuttonitem's
or uinavigationbar's
objects in application have defined appearance.
but if want object have standart appearance(not use defined proxy), need set it's properties default values manually.
so quesion is: there way block using uiappearance
object?
thank you.
edit: not 100% want use appearancewhencontainedin.
[[uibarbuttonitem appearancewhencontainedin:[uinavigationbar class], nil] settintcolor:[uicolor redcolor]]; [[uibarbuttonitem appearancewhencontainedin:[uitoolbar class], nil] settintcolor:[uicolor yellowcolor]];
this way can control behavior degree.
setting properties nil use default appearance: [self.navigationcontroller.navigationbar settintcolor:nil];
Comments
Post a Comment