iOS
iOS

Reputation: 3616

iOS - perform animation on tableView reload

I have to perform some animation effect on tableView - section and rows while displaying for the first time. The animation behaviour is illustrated below

enter image description here

On taking a deeper look, the sectionView slides in from left to right (dark grey). On completion of sectionView animation, the rows starts to animate (light grey). Basically the rows slides down from the top item, one after the other. Approximately, on 50% completion of row one animation, row two starts to appear. How would I achieve it?

Upvotes: 0

Views: 281

Answers (1)

Duncan C
Duncan C

Reputation: 131426

Good question. It would be tricky.

I guess you'd have to create custom table view cells (or content views that go in table view cells) that support animating into place. I'd say you'd create the view, and then apply a mask animation that would show it from left to right or top to bottom.

If you want your top-to-bottom animation to make your cells get taller as well as getting more opaque, it would be move complicated still.

Upvotes: 0

Related Questions