Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何使单元格在我拖动的单元格下方向下,为插入留出空间? 例子。
我希望它的行为如下:
这是一个很好的实现。基本上,您有一个手势识别器来进行点击并按住然后平移(技巧开始于您不移动平移上的单元格,您移动带有单元格快照的 UIImageView)
当单元格移动时,您会检测到哪一行在下方,并相应地移动表格视图的单元格(例如,使用moveRowAtIndexPath:toIndexPath:)
moveRowAtIndexPath:toIndexPath: