Yaman
Yaman

Reputation: 3991

ios - Split a view and animate each part independently

I'm looking for splitting a view into multiple strips then animate each strip independently like moving them from left to right until they go offscreen, with a little delay between each animation.

Do methods exist to split a view or a layer into subviews/sublayers ?

Upvotes: 1

Views: 1001

Answers (1)

Wain
Wain

Reputation: 119031

There is no standard method.

You should start off with code to generate an image from the view. Then, instead of a single image draw each half into separate images. Now you can use these 2 images for your animations.

this might help.

Upvotes: 1

Related Questions