How make the same animation like UITableView reorder of cells?

和自甴很熟 提交于 2019-12-11 12:56:05

问题


I have a drag&drop operation between 2 UITableViews. The cell could be reordered in the source TableView, or move to another TableView.

Because I need to move the cell between the two, I can't use the default reorder support. However, I want to make a similar animation like when the cell is moving around and the cell below them slide out.

Any hint in how do this animation?

UPDATE:

You can see what exactly I'm looking for in the pulse app.


回答1:


You can always use deleteRowsAtIndexPaths:withRowAnimation: to remove it from the source and insertRowsAtIndexPaths:withRowAnimation: to insert it into the destination.




回答2:


if you want to do something similar to what makes "Pulse" you have to use "UIScrollView" for each row that you have and within the Views you need, if you do it UITableView is more complicated and would not be so easy to move between them



来源:https://stackoverflow.com/questions/5112588/how-make-the-same-animation-like-uitableview-reorder-of-cells

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!