UIKit: _UIAppearance Should Respond to isKindOfClass: According to Its Target
| Originator: | daniel | ||
| Number: | rdar://12634889 | Date Originated: | 05-Nov-2012 04:51 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Enhancement | Reproducible: | Always |
Summary:
The UIAppearance API is pretty cool, but requires a lot of boilerplate duplication.
To consolidate global styling efforts, it would be very helpful if instances of the private _UIAppearance class responded with YES to -isKindOfClass: if the class, the appearance is a proxy for, would.
I.e. basically, _UIAppearance should override -[NSObject isKindOfClass:] as:
- (BOOL)isKindOfClass:(Class)class
{
if ([super isKindOfClass:class])
return YES;
return [class isSubclassOfClass:[self _CustomizableClass]];
}
Steps to Reproduce:
Run the tests of the attached sample project.
Expected Results:
The tests pass — and would, if the list of UIView (sub)classes was more comprehensive.
Actual Results:
They fail.
Regression:
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!