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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com