-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/23/10 7: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.
> 

If I understand what you are asking for, look at the CALayer methods:

setShadowOpacity:
setShadowOffset:
setShadowColor:

And note that you can call these on the UIView's layer, e.g.

[[myView layer] setShadowOpacity:0.5];

(Note that you will need to have imported QuartzCore to get access to
this functionality.)


- -- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxyhSAACgkQaOlrz5+0JdVRuACfamGbna7eMxp0d7eGRBMsV/HD
bOYAnikmIP7gOh5mKFJ+/JsVcV2oN/o0
=TWEn
-----END PGP SIGNATURE-----
_______________________________________________

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]

Reply via email to