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
  • 86,179
  • 61
  • 85
  • 118
Adriana Carelli
  • 4,406
  • 11
  • 42
  • 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,554
  • 5
  • 21
  • 41