[英]drag and drop from uitableviewcell to uiimage view in ios
I need help implementing a drag and drop gesture, I would like to know Your opinion to find the best approach. 我需要帮助来实现拖放手势,我想知道您的意见以找到最佳方法。
I have a view controller with a uitableview on the right and some image views on the left. 我有一个视图控制器,右边是uitableview,左边是一些图像视图。
I would like to allow the user to drag every cell of the table view on one of the image views. 我想允许用户将表格视图的每个单元格拖到其中一个图像视图上。 Basically the drag-n-drop will fail if the cell is not released on one of the image views, otherwise the image view will change image according to the dropped cell.
基本上,如果未在其中一个图像视图上释放单元格,则拖放操作将失败,否则图像视图将根据所放置的单元格更改图像。
What do You think is the best way to achieve this? 您认为实现此目标的最佳方法是什么?
In addition, when the user start dragging, I would like that he drags around a particular shaped subview, with image and data, not drag the semitransparent cell. 另外,当用户开始拖动时,我希望他拖动带有图像和数据的特定形状的子视图,而不是拖动半透明的单元格。
Thanks, 谢谢,
The basic steps for this would be: 基本步骤如下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.