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.

Using Range<Index> with NSRange in the NSAttributedString API

I'm attempting to determine the indexes of occurrences of a given string in a String, then generate an NSRange using …

ios swift range nsattributedstring nsrange
NSAttributedString '\n' ignored

I have a single view whose only UI element is a UITextView. In viewDidLoad: I create an attributed string with "…

ios ios6 uitextview nsattributedstring end-of-line
Change color to attributedTitle in UIRefreshControl

I'm looking for a way to change color in UIRefreshControl. The text is shown in an NSAttributedString, so I try …

ios ios6 nsattributedstring uirefreshcontrol
Translate attributed string

I have a UILabel with an attributed string. Here is a printscreen of it: Now, I have to translate this …

ios xcode localization nsattributedstring nslocalizedstring
Adding strikethrough to NSAttributedString in iOS 11 with Swift

Having some issues getting strikethrough to work. Currently I'm doing the following: theString.addAttributes([ NSAttributedStringKey.strikethroughStyle: NSUnderlineStyle.styleSingle.rawValue, NSAttributedStringKey.…

ios swift nsattributedstring strikethrough
What is the equivalent of Android's "Spannable" in Objective-C

Im on an iOS app that should able to highlight text, and make it clickable too. I read about NSAttributedString …

ios objective-c core-text nsattributedstring spannablestring
Markdown to NSAttributedString library?

Now that NSAttributedString is fully supported in iOS 6, is there a library that will take an NSString with markdown, and …

iphone ios nsstring markdown nsattributedstring
How to remove attributes from the NSAttributedString swift?

I have added some attributes to my buttons attributedTitle let attr = NSMutableAttributedString(string: currTitle) attr.addAttribute(NSStrikethroughStyleAttributeName, value: 2, range: NSMakeRange(0, …

ios swift nsattributedstring setattribute nsmutableattributedstring
Is Rounded Corners on Attributed Text Background possible?

I attributed Text with different textcolors. For better readability on highlighted text i use backgroundcolor. Is it possible to bring …

ios iphone uilabel nsattributedstring quartz-core
Confused by NSStringDrawingOptions item meaning

iOS7 and later, we can use - (void)drawWithRect:(CGRect)rect options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes context:(NSStringDrawingContext *)context …

ios nsstring nsattributedstring textkit