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.

Is it possible to get a listing of attributes and ranges for an NSMutableAttributedString?

I've created a method that takes a NSAttributedString and I'm looking to dynamically create a subview and label to put …

ios uilabel nsattributedstring nsmutableattributedstring
replace entire text string in NSAttributedString without modifying other attributes

I have a reference to NSAttributedString and i want to change the text of the attributed string. I guess i …

ios objective-c nsattributedstring
Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'

Just updated pods for xcode 9 and I'm getting the error below for Cosmos. Type 'NSAttributedStringKey' (aka 'NSString') has no member …

ios swift3 cocoapods nsattributedstring cosmos
Change color and font of a string using NSAttributed String

I have a string in which last word would always be of a different color compared to the other words …

ios objective-c nsattributedstring addattribute
How to get height for NSAttributedString at a fixed width

I want to do some drawing of NSAttributedStrings in fixed-width boxes, but am having trouble calculating the right height they'll …

cocoa nstextview appkit nsattributedstring
Transform an NSAttributedString to plain text

I have an instance of NSData containing attributed text (NSAttributedString) originating from an NSTextView. I want to convert the attributed …

cocoa nsattributedstring
UILabel and NSLinkAttributeName: Link is not clickable

I want to use attributed strings with NSLinkAttributeName to create clickable links inside a UILabel instance within my iOS 7 project, …

ios7 uilabel nsurl nsattributedstring clickable
Is it possible to change color of single word in UITextView and UITextField

Is it possible to change color of single word in UITextView and UITextField ? If i have typed a word with …

ios objective-c uitextfield uitextview nsattributedstring
Swift 3 NSAttributedString multiple attributes

just started swift 3 and I have problems with swift syntax. i'm trying to display a simple NSAttributedString. so 1st I …

ios nsattributedstring
Calculate Font Size to Fit Frame - Core Text - NSAttributedString - iOS

I have some text which I am drawing into a fixed frame via an NSAttributedString (code below). At the moment …

ios objective-c fonts core-text nsattributedstring