Contents

NSBackgroundColorAttributeName

The color of the background behind the text.

Declaration

extern NSAttributedStringKey const NSBackgroundColorAttributeName;

Discussion

The value of this attribute is a UIColor object. Use this attribute to specify the color of the background area behind the text. If you do not specify this attribute, no background color is drawn.

See Also

Getting rendering attribute keys