deleteRowsAtIndexPaths

来源:互联网 发布:原生js循环遍历dom 编辑:程序博客网 时间:2024/06/06 07:15

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{    NSUInteger row = indexPath.row;    if (editingStyle == UITableViewCellEditingStyleDelete)    {        [tableViewArray removeObjectAtIndex:row];        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationLeft];    }}

原创粉丝点击