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.

NSAttributedString background color and rounded corners

I have a question regarding rounded corners and text background color for a custom UIView. Basically, I need to achieve …

ios objective-c uiview quartz-graphics nsattributedstring
NSAttributedString inserting a bullet point?

So I have an NSAttributedString I want to insert a bullet point at the beginning of a portion of text. …

ios objective-c swift nsattributedstring bulletedlist
How to make subscripts and superscripts using NSAttributedString?

I need to make subscripts for chemistry formulas (H2O, Na^2+, etc)? Is this possible to do with NSAttributedString, or …

objective-c nsstring nsattributedstring
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
NSAttributedString ignores Autoshrink and numberOfLines for UILabel (iOS 6)

I have UILabel with number of lines = 2 system font size = 15 minimum font size = 8 Line break mode - Truncate tail When …

ios iphone objective-c uilabel nsattributedstring
Center two fonts with different different sizes vertically in an NSAttributedString

I use NSAttributedString to generate a string with two different sizes. By default, its bottom alignment looks like this: But …

ios nsattributedstring
how to resize an image or done as a NSAttributedString NSTextAttachment (or set its initital size)

I have a NSAttributedString to which I am adding a NSTextAttachment. The image is 50w by 50h but I'd like …

ios ios7 uiimage nsattributedstring nstextattachment
How can I both stroke and fill with NSAttributedString w/ UILabel

Is it possible to apply both stroke and fill with an NSAttributedString and a UILabel?

ios cocoa uilabel nsattributedstring
Add attributes to NSMutableAttributedString character by character

Here's my situation: I have an NSMutableAttributedString with no attributes in a text view. Whenever the user presses the backspace …

ios nsattributedstring nsrange
Drawing colored text in UIView's -drawRect: method

I am trying to draw colored text in my UIView subclass. Right now I am using the Single View app …

ios uikit drawrect uicolor nsattributedstring