Ankit Srivastava
Ankit Srivastava

Reputation: 12405

Drag an imageview item on UITableViewCell

I need to drag on ImageView to a UITableView. I have implemented the dragging but now I need to determine the cell on which the image view is dragged and dropped.

I can get the visible cells but than calculating the exact indexpath doesn't seem clear. Any help is appreciated.

Upvotes: 0

Views: 107

Answers (1)

Mundi
Mundi

Reputation: 80273

Get the point in the table view from your dragging callback and then check

indexPathForRowAtPoint:

Upvotes: 1

Related Questions