2 | - (UITableViewCellEditingStyle)tableView:(UITableView *)tv editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { |
3 | return UITableViewCellEditingStyleDelete; |
8 | - ( void )tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { |
9 | [self.myDataArr removeObjectAtIndex:indexPath.row]; |
11 | [self.myTableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; |
蓝天笔记:http://ubluesky.com/archives/354
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。