Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 5791 댓글 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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
529 | Develop |
[php] 그래프 그리는 프로그램..
![]() |
hooni | 2013.04.23 | 9154 |
528 | Develop | [asp] 문자열 관련 함수 요약 | hooni | 2013.04.23 | 9154 |
527 | Develop |
[c#] 본현이형 논문 자료 (HIDS)ㅋㅋ
![]() |
hooni | 2013.04.23 | 9152 |
526 | Develop |
[c] i2osp 임시로.. ㅋㅋ
![]() |
hooni | 2003.04.23 | 9123 |
525 | Develop |
[c++] 현승이가 준 메신저 소스.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 9120 |
524 | Develop |
[java] 마우스 버튼 테스트.. swing..
![]() |
hooni | 2013.04.23 | 9109 |
523 | Develop |
[c] 이진트리(binary tree) 샘플소스 (삽입, 삭제, 운행)
![]() |
hooni | 2003.04.23 | 9106 |
522 | Develop | [c] 소수 구하기 #1 (한정된 숫자 내에 있는 소수 걸러내기) | hooni | 2003.04.23 | 9102 |
521 | Develop |
[c++] 트리컨트롤 스텝 3 예제..
![]() |
hooni | 2013.04.23 | 9098 |
520 | Develop |
[js] 부모창에서 자식창으로 문자열 전달..
![]() |
hooni | 2013.04.23 | 9096 |
519 | Develop |
[jsp] 유효성체크(Client, Server 에서)
![]() |
hooni | 2003.04.23 | 9093 |
518 | Develop |
[c] 학생명단 관리 프로그램 소스 ㅋㅋ
1 ![]() |
hooni | 2003.04.23 | 9082 |