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.
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 nsrangeI 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-lineI'm looking for a way to change color in UIRefreshControl. The text is shown in an NSAttributedString, so I try …
ios ios6 nsattributedstring uirefreshcontrolI have a UILabel with an attributed string. Here is a printscreen of it: Now, I have to translate this …
ios xcode localization nsattributedstring nslocalizedstringHaving some issues getting strikethrough to work. Currently I'm doing the following: theString.addAttributes([ NSAttributedStringKey.strikethroughStyle: NSUnderlineStyle.styleSingle.rawValue, NSAttributedStringKey.…
ios swift nsattributedstring strikethroughIm 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 spannablestringNow that NSAttributedString is fully supported in iOS 6, is there a library that will take an NSString with markdown, and …
iphone ios nsstring markdown nsattributedstringI 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 nsmutableattributedstringI attributed Text with different textcolors. For better readability on highlighted text i use backgroundcolor. Is it possible to bring …
ios iphone uilabel nsattributedstring quartz-coreiOS7 and later, we can use - (void)drawWithRect:(CGRect)rect options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes context:(NSStringDrawingContext *)context …
ios nsstring nsattributedstring textkit