Not sure if this functionality is built into UITableViewCell
, but I'd like to mimic the behavior of the mail app. I have a UITableView
with dynamic cells. When the user performs a left swipe gesture, a delete button (I believe the button text in the mail app says archive instead of delete) should appear on the right-hand side of the cell.
I'm confortable with what to do after that to delete the row. I just need to make the button appear and disapper should the user swipe right OR tap anywhere else in the UITableView
.
I would prefer to do this without adding an 'Edit' UINavigationItem
button and putting the tableView in edit mode as per the "Table View Programming Guide", but appreciate the use of any built in methods.
Thanks.