Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 4784 댓글 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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
297 | Develop |
[java] 마우스 버튼 테스트.. swing..
![]() |
hooni | 2013.04.23 | 7891 |
296 | Develop |
[java] 메모패드.. 스윙(swing)으로..
![]() |
hooni | 2013.04.23 | 8472 |
295 | Develop |
[java] 스윙(swing)버튼 테스트 ㅋㅋ
![]() |
hooni | 2013.04.23 | 9427 |
294 | Develop |
[java] 거스름돈 계산.. swing 사용
![]() |
hooni | 2013.04.23 | 9447 |
293 | Develop |
[java] 에디터.. swing 사용
![]() |
hooni | 2013.04.23 | 6302 |
292 | Develop |
[java] 채팅 프로그램.. swing 사용..
![]() |
hooni | 2013.04.23 | 8350 |
291 | Develop |
[c] 메세지 프로그램 (Server - Agent - Client)
![]() |
hooni | 2013.04.23 | 6461 |
290 | Develop |
[linux] 임베디드 리눅스 (embedded linux)
![]() |
hooni | 2013.04.23 | 7358 |
289 | Develop |
[c] 자료구조 그래프(graph) 소스코드 - 확인해볼 것..
![]() |
hooni | 2013.04.23 | 7996 |
288 | Develop |
[c] 확인해 볼거.. ㅡ,.ㅡ;
![]() |
hooni | 2013.04.23 | 7149 |
287 | Develop |
[c] 퀵정렬(quick sort) 예제 소스..
![]() |
hooni | 2013.04.23 | 7978 |
286 | Develop | [c++] 소켓 프로그래밍 관련 링크.. (퍼올려고 올린거) | hooni | 2013.04.23 | 7033 |