Closed zacwest closed 9 years ago
This does not occur if you set an NSParagraphStyleAttributeName
in the attributedText like so:
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
style.alignment = NSTextAlignmentCenter;
options.baseAttributes = @{ NSParagraphStyleAttributeName: style };
However, the label should handle the -[UILabel textAlignment]
being changed from left.
If the label has a text alignment set, it doesn't inherit (like it does for font) the text alignment, so the tapping rects may be off if it's not left-aligned.