Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
Views 5791 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 |
---|---|---|---|---|---|
639 | Develop |
[ios] Using protobuf(Protocol Buffers) on iPhone (iOS)
![]() |
hooni | 2014.03.20 | 7863 |
638 | Develop |
[ios] Objective-C 프로퍼티의 strong, weak, assign
![]() |
hooni | 2014.03.17 | 6367 |
637 | Develop | [ios] Objective-C 프로퍼티의 ATOMIC / NONATOMIC 속성 | hooni | 2014.03.17 | 3992 |
636 | Develop | [ios] UDID 사용 제한에 따른 대안들 | hooni | 2014.03.13 | 4971 |
635 | Develop | [ios] URL Scheme 이용하여 앱 설치 확인 | hooni | 2014.03.10 | 5281 |
634 | Develop | SVN 초간단 사용하기 | hooni | 2014.02.28 | 9010 |
633 | Develop | SVN 명령어 (SVN command) | hooni | 2014.02.28 | 13030 |
632 | Develop |
페이팔에서 돈 찾기 (Paypal withdraw)
![]() |
hooni | 2014.02.20 | 12745 |
631 | Develop | [unix] 유닉스 명령에 메타문자 사용 | hooni | 2014.02.19 | 12854 |
630 | Develop | [unix] Java 애플릿용 HTML 자동 생성 | hooni | 2014.02.19 | 9288 |
629 | Develop | [unix] 로그파일 정리 쉘스크립트 | hooni | 2014.02.19 | 16110 |
628 | Develop | [html] SVG(Scalable Vector Graphics) 간단 정리 | hooni | 2014.02.13 | 11325 |