On Aug 23, 2010, at 9:02 AM, Eric E. Dolecki wrote: > I was asked to provide a soft drop shadow for a custom UIView class... and > basically I am looking to create a soft shadow beneath a square opaque > element. I'd like to do this without using a PNG. How would I do this? I am > googling, and found something for text, but not just for a simple square > shape.
Draw with CGContextShadow set appropriately, or set the shadow property of the CALayer of the UIView (if you are requiring iOS 3.2 or later) Glenn Andreas [email protected] The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
