-(void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)oldPath toIndexPath:(NSIndexPath *)newPath {
if(oldPath.section == newPath.section && oldPath.row == newPath.row) return;
NSMutableArray * group = (NSMutableArray *) self.groups;
NSMutableArray *gItems = [group objectAtIndex:oldPath.section];
NSDictionary *item = [gItems objectAtIndex:oldPath.row];
[gItems removeObjectAtIndex:oldPath.row];
gItems = [group objectAtIndex:newPath.section];
[gItems insertObject:item atIndex:newPath.row];
[self.tableItems moveRowAtIndexPath:oldPath toIndexPath:newPath];
}
试图在部分之间移动行。但是每次运行时它都会崩溃[self.tableItems moveRowAtIndexPath:oldPath toIndexPath:newPath]
,我做错了什么?提前泰。