On the UITableviewCell.accessoryview I would like to have the -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath method be called on the touchUpInside action. Any ideas on how to achieve this would be great.
On the UITableviewCell.accessoryview I would like to have the -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath method
Share
I would recommend setting the table view cell’s
accessoryViewproperty to a customUIButtoninstance and then setting a custom selector to handle whatever touch event you want to do: (this code is not tested, FYI)You can replace
actionSelectorwith a custom selector of your choice andUIControlEventTouchDownwith whatever event flag you desire, such asUIControlEventTouchUpInside(more details for action selectors).Hope that helps.