• 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: Moving CALayer and content transition animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving CALayer and content transition animation


  • Subject: Re: Moving CALayer and content transition animation
  • From: Conrad Shultz <email@hidden>
  • Date: Thu, 07 Jun 2012 12:39:28 -0700

On 6/7/12 2:14 AM, Markus Spoettl wrote:
> Hello,
>
>   I have a delegate-drawn CALayer which uses a kCATransitionFade content
> transition animation set in -actionForLayer:forKey: of its delegate.
>
> This works fine if the layer is not moving. When the content changes,
> the new content simply fades in, the old one fades out.
>
> However, when the layer is moving at the time its content changes, the
> old content fades out but it remains stationary where the layer was when
> the transition started. It no longer moves along with the layer
> position. The new content fades in, moving with the layer.
>
> Is this to be expected? If so, what is the proper way of handling this?
> Surely there must be something basic I'm missing again.
>
> Thanks for any pointers!

I haven't had a chance to test it myself, but what if you set the
transition animation on the layer's -presentationLayer instead of on the
layer directly?

--
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________

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: Moving CALayer and content transition animation
      • From: Markus Spoettl <email@hidden>
References: 
 >Moving CALayer and content transition animation (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Is there a way to detect if user adds Printer?
  • Next by Date: Re: Moving CALayer and content transition animation
  • Previous by thread: Moving CALayer and content transition animation
  • Next by thread: Re: Moving CALayer and content transition animation
  • Index(es):
    • Date
    • Thread