Why would insertSublayer:atIndex: botch animation of CAShapeLayer?
Why would insertSublayer:atIndex: botch animation of CAShapeLayer?
- Subject: Why would insertSublayer:atIndex: botch animation of CAShapeLayer?
- From: Jason Barker <email@hidden>
- Date: Mon, 08 Apr 2013 14:42:39 -0600
I have a number of CAShapeLayers that are already sublayers to the layer of
a view (UIView). I'm able to animate their paths without any trouble.
However, I need to add some additional shape layers later on and then
animate all of the paths for all of the shape layers. When I attempt to
insert new sublayers, the animation no longer occurs. The view gets
rendered with all the shape layers in their final states.
Here is the block of code that I'm dealing with. When I comment it out, the
paths for the existing layers animate just fine. Can someone tell me what's
going on?
for (int i = oldPoints.count; i < newPoints.count; i++)
[self.layer insertSublayer: [CAShapeLayer layer] atIndex:
++layerIndex];
Thanks!
Jason
_______________________________________________
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