- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
//编辑移动 数据处理
NSString *key = self.keyArray[fromIndexPath.section];
NSMutableArray *arr = self.addressDic[key];
Person *person = [arr[fromIndexPath.row]retain];
[arr removeObjectAtIndex:fromIndexPath.row];
NSString *tokey = self.keyArray[toIndexPath.section];
NSMutableArray *toArr = self.addressDic[tokey];
[toArr insertObject:person atIndex:toIndexPath.row];
}
编辑移动 数据处理
最新推荐文章于 2016-12-14 14:25:46 发布