Search code examples
iphonequartz-graphics

Draw shadow beyond c lipped region on Iphone


In a UIView, is it possible to draw a drop shadow beyond a clip path? I tried to use CGContextSetShadow() before clipping and it doesn't work.


Solution

  • No. It's the drawing, not setting the shadow, that actually draws shadows. All drawing is clipped to the clip path.

    Make your clip bounds bigger.