http://www.cocoachina.com/bbs/read.php?tid-315222.html

删除cell之前先把数据源也删除一条,直接删除cell会崩溃

下面是正确的姿势:

cell.deleteCellBlock = ^(NSIndexPath *deleteIdx){
        [weakSelf.pgcList removeObject:feed];
        [tableView deleteRowAtIndexPath:deleteIdx withRowAnimation:UITableViewRowAnimationAutomatic];
    };

05-12 05:23