• 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: Setting position of CALayer doesn't animate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting position of CALayer doesn't animate


  • Subject: Re: Setting position of CALayer doesn't animate
  • From: David Duncan <email@hidden>
  • Date: Tue, 02 Apr 2013 11:49:32 -0700

On Apr 2, 2013, at 11:43 AM, Steve Mills <email@hidden> wrote:

> On Apr 2, 2013, at 13:35, David Duncan <email@hidden> wrote:
>
>> What class is acting as the layer's delegate?
>
> My ScreenSaverView is the delegate.


By default a UIView will disable animations on its layer via the CALayer informal delegate protocol (if you are creating this layer yourself, you should not assign a UIView subclass as its delegate). This is why you aren't seeing implicit animations when you set the layer's position. You should either use UIView's animation APIs (if this layer belongs to a UIView) or you should assign something else as the layer's delegate (I would probably recommend the former).
--
David Duncan


_______________________________________________

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: Setting position of CALayer doesn't animate
      • From: Steve Mills <email@hidden>
References: 
 >Setting position of CALayer doesn't animate (From: Steve Mills <email@hidden>)
 >Re: Setting position of CALayer doesn't animate (From: David Duncan <email@hidden>)
 >Re: Setting position of CALayer doesn't animate (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Setting position of CALayer doesn't animate
  • Next by Date: Re: Setting position of CALayer doesn't animate
  • Previous by thread: Re: Setting position of CALayer doesn't animate
  • Next by thread: Re: Setting position of CALayer doesn't animate
  • Index(es):
    • Date
    • Thread