2012-02-08 148 views
0

如何刪除表視圖的單元格刪除鍵無沖默認在左側的刪除按鈕(peforming上anoher按鈕刪除操作),所以任何一個可以幫助我刪除表視圖細胞在左側

回答

1
[listTableView beginUpdates]; 
[listTableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:rowNumber inSection:0]] 
        withRowAnimation:UITableViewRowAnimationLeft]; // there are a few other animations, check out the enum 
// Remove the cell's contents from your data source, for example: 
// [contentsArray removeObjectAtIndex:rowNumber]; 
[listTableView endUpdates]; 
+0

感謝它爲我工作 – dev 2012-02-09 07:52:17