Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 4780 댓글 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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
205 | Develop | JSON, BSON 변환 | hooni | 2013.04.23 | 11814 |
204 | Develop | [c++] 기초강좌 #04(클래스) | hooni | 2003.04.23 | 11838 |
203 | Develop | [java] 날짜 계산 (Date, SimpleDateFormat) | hooni | 2013.04.23 | 11854 |
202 | Develop | [php] 한샘 전자발주 시스템.. | hooni | 2013.04.23 | 11987 |
201 | Develop | [c++] 현승이가 준 P2P 프로그램 소스 ㅋㅋ | hooni | 2013.04.23 | 12072 |
200 | Develop | [c++] 기초강좌 #03(함수의 매개변수 전달) | hooni | 2003.04.23 | 12088 |
199 | Develop | [ios] GCD 변수 사용 예제 | hooni | 2013.10.01 | 12117 |
198 | Develop | 참고하고 지울 자료.. 집에서 바야지.. ㅋㅋ | hooni | 2013.04.23 | 12129 |
197 | Develop | SVN 명령어 (SVN command) | hooni | 2014.02.28 | 12149 |
196 | Develop | [c] 문자열 자르는 함수(strtok) 예제 | hooni | 2013.04.23 | 12177 |
195 | Develop | [php] 하루 전 날짜 쉽게 구하기. | hooni | 2013.12.25 | 12215 |
194 | Develop | [c++] 자료구조(링크리스트,스택,큐)와 후위 표기 계산기 샘플 ㅋㅋ 4 | hooni | 2013.04.23 | 12325 |