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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
363 | Develop | [css] 화면 스크롤 제어 ㅋㅋ | hooni | 2003.04.23 | 9688 |
362 | Develop | [php] php+db 연동(odbc, mssql, mysql, sybase) 3 | hooni | 2013.04.23 | 9693 |
361 | Develop | [js] 초간단 암호화/복호화 소스.. | hooni | 2003.04.23 | 9718 |
360 | Develop |
[c] UCP/TCP 채팅 소스 - 정리해야 함..
![]() |
hooni | 2003.04.23 | 9720 |
359 | Develop |
[c++] 레지스트리 등록 예제
1 ![]() |
hooni | 2013.04.23 | 9721 |
358 | Develop | [js] 스크롤을 포함한 마우스 위치 찾는 코드 | hooni | 2003.04.23 | 9723 |
357 | Develop |
[c] 숫자(int, Number)를 hex코드로 변환하는 소스
![]() |
hooni | 2013.04.23 | 9723 |
356 | Develop |
[c] 레포트용으로 제출했던 여러 소스코드 모음
![]() |
hooni | 2003.04.23 | 9726 |
355 | Develop |
[c] 압축 알고리즘 소스 및 정리
![]() |
hooni | 2013.04.23 | 9731 |
354 | Develop | [c] fgets() 함수 사용하기.. | hooni | 2003.04.23 | 9745 |
353 | Develop | [c] 지나가는 패킷 잡기 | hooni | 2003.04.23 | 9773 |
352 | Develop |
[c++] 채팅로봇 소스.. ㅋㄷㅋㄷ
![]() |
hooni | 2013.04.23 | 9788 |