0

How can I set inner shadow to cell.textLabel?

Like this:

cell.textLabel.innerShadow = xyz(2, 2, #000000);

or what?

David Rönnqvist
  • 56,267
  • 18
  • 167
  • 205
B. Altan Kocaoglu
  • 373
  • 1
  • 7
  • 19

1 Answers1

0

It's a bit more complicated than that with inner shadows. You basically have to do the drawing yourself and masking out the area outside of the text.

You can look at this question for the inner shadow part and this question for getting the path of the text. Then you piece them together so that you draw and mask the inner shadow with the path of you text.

Community
  • 1
  • 1
David Rönnqvist
  • 56,267
  • 18
  • 167
  • 205