A
A
Alexander Tikhonov2015-11-21 11:55:12
Objective-C
Alexander Tikhonov, 2015-11-21 11:55:12

Any ideas how to implement such an animation?

I tried to do it through the tableView and reduce the height of the cells and sections when scrolling, but this did not give the desired effect. There is an option to do everything custom, that is, a bare scrollView and throw views on it, then reduce them in the code, but I'm not sure if this is the right way.
e8641ce2b43040a1a6ffaf5e69af69b4.gif
Does anyone have any ideas how to achieve this effect? Perhaps there are some similar open source solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Globak, 2015-12-02
@maximglobak

UIview has animation or you can use CGAffineTransform
to smoothly reduce the height of the cells
I'm not sure, but I think it's worth increasing a certain global counter by 1 when rendering cells.
Hang a notification on the counter and perform your actions with certain values.
My opinion is that you need to do this in a table, do not knead the scorlView here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question