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.

UILabel with two different color text

How can i have a UILabel with two different colors for the font? I will have text in two different …

ios xcode uilabel nsattributedstring textcolor
Add a click event to some text in ios NSString

I have the following code and want to make parts of my text be clickable and call another UIViewController (not …

ios iphone uibutton nsattributedstring uitapgesturerecognizer
Top-aligning text of different sizes within a UILabel

How to top-align text of different sizes within a UILabel? An example is top-aligning smaller-sized cent amount with larger-sized dollar …

ios ios6 uilabel nsattributedstring
UITextView with custom font not working when text set to "attributed"

I have a UITextView with some text that came from a .rtf (pasted directly onto Xcode) The context contain only …

xcode swift nsattributedstring custom-font
Wrapping Text in a UITextView Around a UIImage WITHOUT CoreText

Is there a way to wrap text from a UITextView around a UIImage without using CoreText? I have been playing …

ios uiimageview uitextview word-wrap nsattributedstring
Add attachment image to attributed string in iOS 6

I have spent 3 hours on this but just can't solve it, anybody knows why? please help me! The code below …

nsattributedstring nstextattachment
How is a paragraph defined in an NSAttributedString?

I see that there is an attribute name (NSParagraphStyleAttributeName) for applying paragraph styles to text in Cocoa. Text is stored …

cocoa macos nstextview nsattributedstring
How to set color of templated image in NSTextAttachment

How can I set the color of a templated image that is an attachment on an attributed string? Background: I've …

ios nsattributedstring nstextattachment
NSForegroundColorAttributeName not working for UILabel

I have a problem changing substring color using "NSForegroundColorAttributeName". I'm confused since other attributes for the same substring are being …

ios objective-c nsattributedstring core-text
Really close lines with NSAttributedString?

I want to have two lines of text appear really close together (small line spacing) for a button. I have …

ios objective-c uibutton uilabel nsattributedstring