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.

How do I make an attributed string using Swift?

I am trying to make a simple Coffee Calculator. I need to display the amount of coffee in grams. The "…

fonts uilabel swift nsattributedstring
How do you use NSAttributedString?

Multiple colours in an NSString or NSMutableStrings are not possible. So I've heard a little about the NSAttributedString which was …

ios ios4 nsattributedstring textcolor
Create tap-able "links" in the NSAttributedString of a UILabel?

I have been searching this for hours but I've failed. I probably don't even know what I should be looking …

ios hyperlink uilabel nsattributedstring uitapgesturerecognizer
How can I make a clickable link in an NSAttributedString?

It's trivial to make hyperlinks clickable in a UITextView. You just set the "detect links" checkbox on the view in …

ios objective-c hyperlink uitextview nsattributedstring
Change string color with NSAttributedString?

I have a slider for a survey that display the following strings based on the value of the slider: "Very …

ios cocoa-touch nsattributedstring
Bold & Non-Bold Text In A Single UILabel?

How would it be possible to include both bold and non-bold text in a uiLabel? I'd rather not use a …

ios objective-c swift uilabel nsattributedstring
boundingRectWithSize for NSAttributedString returning wrong size

I am trying to get the rect for an attributed string, but the boundingRectWithSize call is not respecting the size …

objective-c nsattributedstring
How to underline a UILabel in swift?

How to underline a UILabel in Swift? I searched the Objective-C ones but couldn't quite get them to work in …

ios swift overriding uilabel nsattributedstring
Convert HTML to NSAttributedString in iOS

I am using a instance of UIWebView to process some text and color it correctly, it gives the result as …

iphone objective-c cocoa-touch core-text nsattributedstring
NSAttributedString add text alignment

How can I add text alignment attribute to an NSAttributedString to center the text? Edit: Am I doing anything wrong? …

ios objective-c nsattributedstring core-text