0
我有一張桌子,我注意到當我做「滑動刪除」時,紅色按鈕只有第一次動畫,返回(如果我做另一個滑動)沒有動畫消失。這是我用此步驟的方法:UITableView滑動返回動畫
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellEditingStyleDelete;
}
- (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath {
...
}
- (void)tableView:(UITableView *)tableView
didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView reloadData];
}
我忘了什麼事能激起回報?
非常感謝!
好的,非常感謝! – Vins
對不起,但尚未正常工作:( – Vins
問題可能是單元格是自定義單元格? – Vins