Any drawing that should be affected by the shadow setting needs to happen after
CGContextSetShadow(currentContext, CGSizeMake(-15, 20), 5);
but before
CGContextRestoreGState(currentContext);
There's also some sample code in Apple's Quartz 2D Programming Guide. Make sure you didn't draw the shadow out of the view's bounds.
No comments:
Post a Comment