Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"firstLineIndent" wrong document #796

Open
mxl123 opened this issue Jun 3, 2019 · 0 comments
Open

"firstLineIndent" wrong document #796

mxl123 opened this issue Jun 3, 2019 · 0 comments

Comments

@mxl123
Copy link

mxl123 commented Jun 3, 2019

I see the notice

Any properties affecting text or paragraph styling, such as `firstLineIndent` will only apply when text is set with an `NSString`. If the text is set with an `NSAttributedString`, these properties will not apply.

and the "setText" method

if ([text isKindOfClass:[NSString class]]) {
    [self setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:nil];
    return;
}

the "setText:afterInheritingLabelAttributesAndConfiguringWithBlock" call "setText" with a mutableAttributedString.

The document tell me to set text rather than NSAttributedString, then the "setText" call itself with NSAttributedString in any case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant