views:

1003

answers:

1

Hello guys,

i need to change the title of the default delete button that appears when i attempt to delete a row from a tableview after setting editing to YES

Thanks for helping

+10  A: 

You can change it in UITableView delegate method

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
Vladimir
Thank you,but i did add that method and returned NSString like thatreturn @"Remove";and nothing happened, it displays the default title "Delete"
zanque
Strange - it works fine for me...
Vladimir
ok thanks, i was building on 2.2.1its now working fine
zanque