When the following code is executed
style = [self performSelector:sel withObject:(id)state];
The breakpoint in sel does not hit. Is this normal behavior?
NSString* key = state == UIControlStateNormal
? selector
: [NSString stringWithFormat:@"%@%d", selector, state];
TTStyle* style = [_styles objectForKey:key];
if (!style) {
SEL sel = NSSelectorFromString(selector);
if ([self respondsToSelector:sel]) {
style = [self performSelector:sel withObject:(id)state];
if (style) {
if (!_styles) {
_styles = [[NSMutableDictionary alloc] init];
}
[_styles setObject:style forKey:key];
}
}
}