0

I would like to achieve inner shadows on the border of an UIView. See screenshot

See attached screenshot.

I have tried it using shadow CALayer, but it does not seem to be good choice for this. Thanks for any hints.

Unfortunately I did not find an answer in the topics discussed here.

Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
  • See the accepted answer to this question: http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer – Daniel Thorpe Dec 09 '11 at 15:00

1 Answers1

1

I always do this with a UIImage that has the inner shadow in it, and lay that on top of the view you're trying to shadow.

Joshua Weinberg
  • 28,598
  • 2
  • 97
  • 90