• 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: CALayer: Animation using actions property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer: Animation using actions property


  • Subject: Re: CALayer: Animation using actions property
  • From: David Duncan <email@hidden>
  • Date: Tue, 19 Apr 2011 08:59:23 -0700

On Apr 18, 2011, at 7:49 PM, Bhatnagar, Arvin wrote:

> This is probably a simple question for someone other than I.
>
> I have a very simple CALayer which is a simple plain layer with a white background. I then create a CABasicAnimation and add it to the actions property to animate the @"opacity". From here I setup a timer to fire and toggle the opacity between 0 and 1 which animates.


Your analysis of the timer was correct, but I wanted to talk to this point instead – rather than using a timer to toggle the opacity, you could just add an animation to the layer that auto-reverses and repeats indefinitely, which would likely give you the same effect without having to run a timer at all.
--
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: CALayer: Animation using actions property
      • From: "Bhatnagar, Arvin" <email@hidden>
References: 
 >CALayer: Animation using actions property (From: "Bhatnagar, Arvin" <email@hidden>)

  • Prev by Date: Re: NSTableView willDisplayCell: called on hover
  • Next by Date: Re: CALayer: Animation using actions property
  • Previous by thread: Re: CALayer: Animation using actions property
  • Next by thread: Re: CALayer: Animation using actions property
  • Index(es):
    • Date
    • Thread