I've a master detail project, when I click on a cell in the master I can see the detail with the number of row with this code in the prepareForSegue:
DetailViewController *controller = (DetailViewController *)[[segue destinationViewController] topViewController];
[controller setDetailItem:indexPath.row];
Now in the detail I have a button too, when I click I want to remove the cell at the master's index saved in the detailItem of DetailViewController.
How can I do this?
Thanks.