我已經實現了在交換時顯示刪除按鈕的功能,它還通過單擊按鈕刪除單元格。但我只想將刪除按鈕的文本從“刪除”更改為“取消”
在 UITableViewDelegate 中實施以下內容</一>: - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"Cancel"; }
UITableViewDelegate
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"Cancel"; }