mattt/TTTAttributedLabel — Issue #57: Order of setter operations significant
Author: alondon
Created: 2012-02-09 17:23:04+00:00
State: open

Perhaps I missed something in the documentation, but it appears to me in trying to use TTTAttributedLabel in a project that when configuring a label instance that the text property must be set last otherwise any styling properties (e.g., textColor, shadowColor, etc...) are ignored. For example, the following to sets of label configs do not produce the same result:

// Label color not set to red.
someLabel.text = @"Some Text";
someLabel.textColor = [UIColor redColor];

// Label color is set to red.
someLabel.textColor = [UIColor redColor];
someLabel.text = @"Some Text";

It is not a major problem, just different than the behavior I expected from a subclass of UILabel, and I was curious whether this behavior is intentional.