如何使像UITableView一样的动画重新排序单元格? [英] How make the same animation like UITableView reorder of cells?

查看:210
本文介绍了如何使像UITableView一样的动画重新排序单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个拖放操作在2个UITableViews之间。该单元格可以在源TableView中重新排序,或移动到另一个TableView。

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.

这个动画的任何提示?

更新:

你可以看到我在脉搏应用程序

推荐答案

如果你想做的事情类似于什么使Pulse你必须使用UIScrollView你所需要的每个行和你需要的视图,如果你这样做UITableView是更复杂,并不会很容易在他们之间移动

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

这篇关于如何使像UITableView一样的动画重新排序单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆