Search code examples
iphoneobjective-cxcoderightbarbuttonitem

Customizing self.editButtonItem with Check and UnCheck- HELP


So with regards to the rightBarButtonItem . I have

self.navigationItem.rightBarButtonItem = self.editButtonItem;

When I press Edit, I get animation and a vertical stripe on the left side of each TableViewCell. When I click that stripe, the Delete button appears on the right side of THAT tableViewCell.

I want to do two things.

  1. Rename that 'Delete' to 'Check'
  2. If it is checked, it should display 'Uncheck' to be tapped.

I would appreciate any help on that..

:)


Solution

  • Implement tableView:titleForDeleteConfirmationButtonForRowAtIndexPath: in your table view delegate.