0
행을 이동 한 후 셀과 관련된 비즈의 lineandPin 번호를 변경했습니다. cellForRowAtIndexpath가 다시 호출되면 일이 정렬됩니다. 행을 이동 한 후 cellForRowAtIndexPath를 다시 호출하는 방법은 무엇입니까?
이
내가 그것을 잘하고있는 중이 야 확실하지 오전 내 코드- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath
{
NSMutableArray * mutableBusinessBookmarked= self.businessesBookmarked.mutableCopy;
Business *bizToMove = mutableBusinessBookmarked[sourceIndexPath.row];
[mutableBusinessBookmarked removeObjectAtIndex:sourceIndexPath.row];
[mutableBusinessBookmarked insertObject:bizToMove atIndex:destinationIndexPath.row];
self.businessesBookmarked=mutableBusinessBookmarked;
[self rearrangePin];
[tableView moveRowAtIndexPath:sourceIndexPath toIndexPath:destinationIndexPath];
[self.table reloadData];
}
- 입니다. 데이터 모델을 업데이트하고 전화를 걸었습니다.
moveRowAtIndexPath
[tableView moveRowAtIndexPath...
아무 것도 보이지 않습니다. 행이 호출되는지 여부에 관계없이 행이 이동됩니다.- self.table reloadData를 호출하는 것이 현명하다고 생각하지 않습니다. 그러나 왼쪽의 번호를 업데이트하고 싶습니다.
cellForRowAtindexpath
은self.table reloadData
에도 불구하고 호출되지 않습니다.