Re: Box soft shadow?
Re: Box soft shadow?
- Subject: Re: Box soft shadow?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Mon, 23 Aug 2010 11:43:57 -0400
Thank you.
On Mon, Aug 23, 2010 at 10:26 AM, Conrad Shultz <
email@hidden> wrote:
> -----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-----
>
--
Interactive Designer and Developer
Google Voice: (508) 656-0622
http://blog.ericd.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden