CALayer: Animation using actions property
CALayer: Animation using actions property
- Subject: CALayer: Animation using actions property
- From: "Bhatnagar, Arvin" <email@hidden>
- Date: Mon, 18 Apr 2011 22:49:00 -0400
- Acceptlanguage: en-US
- Thread-topic: CALayer: Animation using actions property
Hi All,
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.
My issue is, when I go to resize the window the animation halts. Anybody know why this occurs and if I can allow the animation to continue even if I resize the view that the layer resides in? It's probably something small and simple, but just don't know what it is and can't find it in the documentation.
Oh yeah, my later tree is setup as such:
[CALayer rootLayer]
[view setWantsLayers:YES]
[[view layer] addSublayer:mBasicLayer]
Thanks,
Arvin
_______________________________________________
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