Top "Nsmutableattributedstring" questions

Changing specific text's color using NSMutableAttributedString in Swift

The issue I am having is that I want to be able to change the textColor of certain text in …

ios swift nsmutableattributedstring
Making text bold using attributed string in swift

I have a string like this var str = "@text1 this is good @text1" Now replace text1 with another string, say …

ios swift nsmutableattributedstring
Underline part of a string using NSMutableAttributedString in iOS 8 is not working

I try to underline part of a string, for example, a 'string' part in 'test string' string. I'm using NSMutableAttributedString …

ios objective-c iphone ios8 nsmutableattributedstring
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
Convert NSMutableAttributedString to NSString

Can we not convert NSMutableAttributedString to NSString? I have two NSMutableAttributedStrings and I am appending the 2nd string onto 1st …

ios objective-c nsstring uilabel nsmutableattributedstring
Converting a NSAttributedString into a NSString using Swift

I have a NSMutableAttributedString and want to convert it back into a simple String. var attributedString = NSMutableAttributedString(string: "hello w0…

swift string nsattributedstring nsmutableattributedstring
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
How to bold some words in my UITextView using NSMutableAttributedString?

I have a UITextView and there are certain words I'm casting with NSString stringWithFormat that I'd like to be bolded. …

ios objective-c uitextview nsattributedstring nsmutableattributedstring
How to apply bold and italics to an NSMutableAttributedString range?

I've been trying to apply combinations of NSFontAttributes to NSMutableAttributedString's lately and I simply can't find a thorough explanation on …

ios objective-c nsstring nsmutableattributedstring
Displaying text in a NSScrollView (Swift)

Just started to learn Swift and created a little macOS app in which I want to use a NSScrollView to …

xcode swift nsscrollview nsmutableattributedstring