Top "Nsattributedstring" questions

NSAttributedString objects manage character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string.

Core Text - NSAttributedString line height done right?

I'm completely in the dark with Core Text's line spacing. I'm using NSAttributedString and I specify the following attributes on …

nsattributedstring core-text line-spacing
how to append Attributed Text String with Attributed String in Swift

I want to append an Attributed Text with another Attributed Text in Swift. Please provide any sample code for appending …

swift nsattributedstring
iOS NSAttributedString on UIButton

I'm using iOS 6, so attributed strings should be easy to use, right? Well... not so much. What I want to …

ios uibutton nsattributedstring
Attributed string with custom fonts in storyboard does not load correctly

We are using custom fonts in our project. It works well in Xcode 5. In Xcode 6, it works in plain text, …

ios swift ios8 xcode6 nsattributedstring
How can I set the color and alignment of attributed text in a UITextView in iOS 7?

The formatting of my textViews worked fine in iOS 6, but no longer in iOS 7. I understand with Text Kit much …

ios uitextview nsattributedstring textkit
How to set font size on NSAttributedString

Edit - This has been marked as duplicate, but as I state below, I am looking for a Swift solution. …

ios swift nsattributedstring
Change the color of a link in an NSMutableAttributedString

I have the following code but my links are always blue. How do I cange the color of them? [_string …

ios iphone nsattributedstring nsmutableattributedstring
Appending NSAttributedString with line break returns attributed string with wrong format

I'm using NSMutableAttributedString and NSAttributedString to display a label text in two different font sizes. My approach is: NSMutableAttributedString *muAtrStr = [[…

ios objective-c nsattributedstring
Adding underline to UILabel attributed string from the storyboard fails

From the storyboard I select the UILabel in question Then in Attribute Inspector > Label > [I choose] Attributed Also …

ios objective-c uilabel nsattributedstring
NSParagraphStyle line spacing ignored

A simple test that is failed: Make a new project with just one subview (UITextView) and put the following in: …

objective-c uitextview ios6 nsattributedstring