mattt/TTTAttributedLabel — Issue #43: - (void)setText:(id)text   <- call twice
Author: pupple
Created: 2011-12-14 02:13:53+00:00
State: open

- (void)setText:(id)text {
if ([text isKindOfClass:[NSString class]]) {
[self setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:nil]; <- ( call setText: again)
<-- return; <- will need?
} else {
self.attributedText = text;
}

...
...

[super setText:[self.attributedText string]];
}

- (void)setText:(id)text afterInheritingLabelAttributesAndConfiguringWithBlock:(NSMutableAttributedString *(^)(NSMutableAttributedString *mutableAttributedString))block {

...
...

[self setText:mutableAttributedString]; <- ( call setText: again)
}