views:

20

answers:

1

Hi, I've this NIB file:

My Nib file

and I want to make the tableviewcells draggable, but outsite the tableview.

Is this possible?

+2  A: 

I don't believe you can make drag the cell outside of it's containing view, but it is possible to create a view on top of the tableview and drag that where you want it. You'd probably want to delete the cell from the table as soon as the user selected the cell to make it look like he grabbed the cell from the table.

JoBu1324
do you have any suggestion on how to mac this?
patrick
I'd start by recreating the cell view over the selected cell in `-tableView:didSelectRowAtIndexPath:indexPath`, followed by promptly deleting the cell from the table. That will give the user the impression they have "grabbed" the cell. After that it's a matter of moving the view by following the touch events. Unfortunately I don't have any experience with custom touch events - I'll look into when I get a chance, hopefully sometime tomorrow. Let me know if you figure it out!
JoBu1324
Also, check out the `center` property of UIView, I think it will be helpful:[http://developer.apple.com/library/ios/#documentation/uikit/reference/UIView_Class/UIView/UIView.html]
JoBu1324