How to change iPhone UITableView delete button title while editing it

前端 未结 4 1518
礼貌的吻别
礼貌的吻别 2020-12-09 15:02

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

4条回答
  •  悲哀的现实
    2020-12-09 15:51

    You can change it in UITableView delegate method

    - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
    

提交回复
热议问题