Re: CALayer: Animation using actions property
Re: CALayer: Animation using actions property
- Subject: Re: CALayer: Animation using actions property
- From: "Bhatnagar, Arvin" <email@hidden>
- Date: Tue, 19 Apr 2011 12:07:59 -0400
- Acceptlanguage: en-US
- Thread-topic: CALayer: Animation using actions property
Thanks David, I am going to try that suggestion right now.
On 4/19/11 11:59 AM, "David Duncan" <email@hidden> wrote:
>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