• 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: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)


  • Subject: Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 09 Feb 2012 11:25:10 -0800

On Thu, Feb 9, 2012 at 11:09 AM, Fritz Anderson <email@hidden> wrote:
> * Create a duplicate CAShapeLayer (maskL) with [[CAShapeLayer alloc] initWithLayer: shapeL].
>        - Adjust the fill color to blackColor, because masking goes by alpha.

The CALayer documentation makes it quite clear that you should never,
ever do this:

"Note: Invoking this method in any other situation will produce
undefined behavior. Do not use this method to initialize a new layer
with an existing layer’s content."

https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
      • From: Fritz Anderson <email@hidden>
References: 
 >Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't) (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
  • Next by Date: Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
  • Previous by thread: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
  • Next by thread: Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
  • Index(es):
    • Date
    • Thread