2

I want to recognize when i select a cell and drag it over another cell.

Is there any example/ workaround for this?

My goal is to create an UITableView which allows me to merge two cells into one cell.

Thanks

rmaddy
  • 314,917
  • 42
  • 532
  • 579
AppVault
  • 65
  • 7
  • possible duplicate of [Tutorial on How to drag and drop item from UITableView to UITableView](http://stackoverflow.com/questions/3481858/tutorial-on-how-to-drag-and-drop-item-from-uitableview-to-uitableview) – Rui Peres Jul 18 '13 at 08:10

1 Answers1

1

You can use UITableView delegates

to move rows

- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath

And To compare CGRects

self.tableView rectForRowAtIndexPath:(NSIndexPath *)

Then, I believe, create, insert new cell.

Injectios
  • 2,777
  • 1
  • 30
  • 50