PDA

View Full Version : Change title of Delete button in UITableView




sspbond007
Mar 3, 2009, 07:23 AM
Hi,

I have a functionality of deleting record from table in my app. When table is switched in editing mode and on tapping red minus button a Delete button appears on right side.
I want to change the title of this button from Delete to Remove. Is it possible in SDK?
Please help.

Thanks



gnuchu
Dec 7, 2009, 05:15 AM
Hi,

I have a functionality of deleting record from table in my app. When table is switched in editing mode and on tapping red minus button a Delete button appears on right side.
I want to change the title of this button from Delete to Remove. Is it possible in SDK?
Please help.

Thanks

The method below should help with this:
tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:

Documentation here: http://bit.ly/8z1Q6G