5
我已經實現了使交換中的刪除按鈕可見的功能,並且它還通過單擊按鈕來刪除單元。但我只是想刪除按鈕上的文字從「刪除」更改爲「取消」如何在交換事件中更改UITableCell中的刪除按鈕的文本
我已經實現了使交換中的刪除按鈕可見的功能,並且它還通過單擊按鈕來刪除單元。但我只是想刪除按鈕上的文字從「刪除」更改爲「取消」如何在交換事件中更改UITableCell中的刪除按鈕的文本
實現你的UITableViewDelegate
如下:
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"Cancel";
}
可以使用的UITableViewDelegate協議方法:
tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:
感謝您的幫助。 – 2011-05-19 09:39:30