• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Box soft shadow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Box soft shadow? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Box soft shadow? (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: Box soft shadow?
  • Next by Date: Mapping Model
  • Previous by thread: Re: Box soft shadow?
  • Next by thread: Mapping Model
  • Index(es):
    • Date
    • Thread