UITableView에서 _selectAttributes라는 이름을 붙 였는데 각 셀을 탭할 때 체크 표시를 제거하고 싶습니다. 이 코드입니다 :UITableView 셀의 체크 표시
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell * cell = [_selectAttributes cellForRowAtIndexPath:indexPath];
if (cell.accessoryType != UITableViewCellAccessoryCheckmark) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
else {
cell.accessoryType = UITableViewCellAccessoryNone;
}
}
모든 것이 잘 작동하는 것 같다,하지만 난 스크롤 및 테이블 아래로, 체크 표시가 다른 세포에 표시하고 이전 것들에 사라질 때.
어떻게 해결할 수 있습니까?
미리 감사드립니다.
가능한 복제본 [UITableViewCellAccessory가 화면을 벗어날 때 사라짐] (http://stackoverflow.com/questions/5827034/uitableviewcellaccessory-disappears-when-scrolled-off-screen) – rmaddy