4/13/2023 0 Comments Set line spacing in word for mac![]() NSAttributedString's old attributedStringWithString did the same thing, but now that is being deprecated.įor historical reasons, here's my original answer: [attrString addAttribute:NSParagraphStyleAttributeName The code you want will be something like this: NSMutableAttributedString* attrString = text"] ![]() ![]() Instead of using an NSString to set the label's text, create an NSAttributedString, set attributes on it, then set it as the. Edit: Evidently NSAttributedString will do it, on iOS 6 and later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |