I have a standard UITableView
of items. Tapping a row will bring a DetailsViewController
with details about the selected item and the possibility to use it through a UIButton
.
I have implemented the (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
method made available from iOS 8 and I defined two actions:
- The standard deletion of the item (pretty simple stuff).
- The possibility to use the item like above. I basically want this action behavior to be the same of the
IBAction
related to the button in theDetailsViewController
.
I thought about presenting this view controller automatically and making an automatic tapping of the button without using interaction, but this could be a bit confusing for the user according to me. So I would prefer to call the IBAction
method directly from the table view controller. Is it possible and how can I achieve this result?
I can provide the source code if this could help you to help me.