1

Possible Duplicate:
NSBackgroundColorAttributeName-like attribute in NSAttributedString on iOS?

I am trying to set the text background color in my attributed string. What is the attribute that allows me to do that?

Community
  • 1
  • 1
aryaxt
  • 76,198
  • 92
  • 293
  • 442

2 Answers2

3

NSBackgroundColorAttributeName

jtbandes
  • 115,675
  • 35
  • 233
  • 266
1

Try changing the color of NSAttributedStringView

PengOne
  • 48,188
  • 17
  • 130
  • 149
  • I want different background colors for different portion of text – aryaxt Jul 18 '11 at 01:03
  • @aryaxt: Then you want to following this post: http://stackoverflow.com/questions/6707906/nsbackgroundcolorattributename-like-attribute-in-nsattributedstring-on-ios – PengOne Jul 18 '11 at 01:10