I have a layer-hosting view, with the tree extending to about 60 layers total.
In particular I have two one-sided "card" views with three CATextLayer
sublayers each. They are in the same frame, and backless; I switch between them
by doing an x-axis rotation so it appears that the two make a single card that
flips over to reveal the content. Simultaneously with the flip, I change the
content of a CAShapeLayer, and destroy-and-create about a dozen CALayers that
contain 3 CATextLayers each.
If it helps you visualize it, the shape layer is the route of a bus, and the
numerous layers with text layers represent bus stops with arrival times. The
"card" layers show the name, number, and direction of the currently-displayed
route.
I've changed the bus-stop layers from being single CATextLayers (bad layout) to
CALayers with text sublayers). That approximately quadrupled the stop-related
layers.
Since then, the card flip has become almost instantaneous. You can see the
edges move if you look carefully, but the visual effect of a flip is
essentially gone.
I had thought that setting the duration property on the card layers to 1.0
might have some good effect. Strangely, it had the effect of keeping them from
displaying at all.
I'm fairly new to Core Animation; I haven't yet gotten into CAAnimation. I'd
like to get the gradual transition back. Is there something I can fix?
— F
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]