views:

288

answers:

2

I have a UITableView that represents a list of objects, I'd like the user to touch an object, drag it onto another one (as to combine them) and seeing the two disappearing and a new one appearing. I guess that I can't do this with the standard table view editing methods (a row cannot be dragged onto another one, am I right?). Shall I write my touch listeners? how can I do that?

A: 

Did you ever work out how to do this?

It's something about to try out for myself.

d2kagw
Nope, I'm trying different approches as you can read http://stackoverflow.com/questions/3457900/uitableview-scrolling-programmatically-the-content-view and http://stackoverflow.com/questions/3417808/uitableview-custom-gestures-make-it-scrolling-no-more
rano
@d2kagw: see my other answer for a solution
rano
A: 

I managed to find a workaround: after the first click on a custom UITableCellView I create a new UIView to put on top of the window that intercepts another touch+drag.

The other touch creates a UIImageView that copies the undelying clicked cell as a Image. This UIImageView can be dragged around along the UIView and then dismissed when necessary.

When I end the touch I look if it ended up a another cell, if so I get its indexPath and compute a coherent action

rano