Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 4835 댓글 0
여러개의 특정 row만 reload 하는 코드
// tableView에 특정 row만 reload 하겠다고 메세지 전달 [tableView beginUpdates]; // reload 하기 위한 indexPath 배열 생성 NSIndexPath *indexPath1 = [NSIndexPath indexPathForRow:1 inSection:0]; NSIndexPath *indexPath2 = [NSIndexPath indexPathForRow:3 inSection:0]; NSArray *array = [NSArray arrayWithObjects:indexPath1, indexPath2, nil]; // 특정 row를 reload [tableView reloadRowsAtIndexPaths:array withRowAnimation:UITableViewRowAnimationFade]; // tableView에 reload 완료 메세지 전달 [tableView endUpdates];
한 개의 특정 row 만을 reload 하는 심플한 코드
[_tableView beginUpdates]; [_tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop]; [_tableView endUpdates];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
361 | Develop | [c] 팩토리얼 서버/클라이언트.. | hooni | 2003.04.23 | 17314 |
360 | Develop | [c] 패킷정보출력(경로, 패킷길이, 3hand, sync, ack..) | hooni | 2003.04.23 | 7276 |
359 | Develop | [c] 패킷 유량/프로토콜 통계 모니터링.. | hooni | 2013.04.23 | 8394 |
358 | Develop | [c] 패킷 에널라이저 예제 소스(성안당) | hooni | 2013.04.23 | 6991 |
357 | Develop | [c] 패스워드 암호화/사용자 정보 보기 | hooni | 2003.04.23 | 7036 |
356 | Develop | [c] 파일입출력, 링크리스트(linked list)를 이용한 주소록(도스용) 소스코드 1 | hooni | 2003.04.23 | 11181 |
355 | Develop | [c] 파일입출력 간단한 설명 | hooni | 2003.04.23 | 11265 |
354 | Develop | [c] 파일명 또는 특정 패턴을 적용 | hooni | 2016.08.03 | 873 |
353 | Develop | [c] 파일(int fd)에서 개행문자 단위로 읽기 by 후리자 | hooni | 2013.04.23 | 7161 |
352 | Develop | [c] 파일(File)의 연결과 연결 해제 (link, unlink, chown) | hooni | 2013.04.23 | 9549 |
351 | Develop | [c] 파일(File) 관련 함수 샘플 코드 | hooni | 2003.04.23 | 7477 |
350 | Develop | [c] 파일 복사(copy) 프로그램 샘플 소스 | hooni | 2003.04.23 | 6800 |