Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
Views 4843 Comment 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];
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
633 | Develop | [c] 가변인자 함수(printf와 같은..) | hooni | 2013.04.23 | 7199 |
632 | System/OS | [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치) | hooni | 2013.04.23 | 13154 |
631 | Develop |
[c] openssl 샘플코드.. 어려움 ㅠㅠ
![]() |
hooni | 2013.04.23 | 7041 |
630 | Develop |
[c] 바로 보고 정리할 것.. ㅋㄷㅋㄷ
![]() |
hooni | 2013.04.23 | 7151 |
629 | Develop |
[c] UTF-8을 EUC-KR로 변환.. (iconv)
![]() |
hooni | 2013.04.23 | 20198 |
628 | Develop |
[c] 도메인(호스트)으로 IP정보 알아오기.. (nslookup과 비슷)
![]() |
hooni | 2013.04.23 | 6953 |
627 | Develop |
[c] 파이프(popen)로 다른 프로세스 실행결과 가져오기
![]() |
hooni | 2013.04.23 | 8426 |
626 | Develop |
[c++] Win32 API 기본 출력인 MessageBox() 함수 사용 예제..
![]() |
hooni | 2013.04.23 | 12706 |
625 | Develop | [c++] mfc에서 윈도우 항상 위 속성 주기.. | hooni | 2013.04.23 | 11363 |
624 | Develop | [c] 쓰레드에 대한 내용 퍼오기..ㅡㅡ; | hooni | 2013.04.23 | 8466 |
623 | Develop |
[c++] 채팅로봇 소스.. ㅋㄷㅋㄷ
![]() |
hooni | 2013.04.23 | 8902 |
622 | PPT |
[doc] 인공지능 관련 자료(채팅로봇도 포함..)
![]() |
hooni | 2013.04.23 | 18044 |