0

I created a standard UITableView, the selection of a cell must leave a subtable of detail between two tableviewCell. How can I do? Do you have any suggestions?

Toto
  • 89,455
  • 62
  • 89
  • 125
Ortensia C.
  • 4,666
  • 11
  • 43
  • 70

1 Answers1

1

Use insertRowsAtIndexPaths to insert a new row above/below the selected cell like this.

[tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationBottom];

and Customize the method as per your requirement.

Ganapathy
  • 4,594
  • 5
  • 23
  • 41