Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
Views 4844 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 |
---|---|---|---|---|---|
649 | Develop | [c] KNN(K-nearest neighbor) 패턴인식 과제.. | hooni | 2013.04.23 | 7415 |
648 | Develop | [c] Mac OS 에 gmp(gmp.h) 라이브러리 설치 | hooni | 2016.10.03 | 1444 |
647 | Develop | [c] OpenGL 관측점 이동 | hooni | 2003.04.23 | 7639 |
646 | Develop | [c] OpenGL 마우스 이벤트 | hooni | 2003.04.23 | 8754 |
645 | Develop | [c] OpenGL 색 입방체의 회전(입체) | hooni | 2003.04.23 | 7897 |
644 | Develop | [c] OpenGL 시어핀스키 가스킷(p.73 - 첫시간) | hooni | 2003.04.23 | 8789 |
643 | Develop | [c] OpenGL 임시로 여기 올림.. | hooni | 2003.04.23 | 10348 |
642 | Develop | [c] OpenGL 직사각형(2D) 크기 확대/축소 | hooni | 2003.04.23 | 9097 |
641 | Develop | [c] openssl 샘플코드.. 어려움 ㅠㅠ | hooni | 2013.04.23 | 7042 |
640 | Develop | [c] pcapdump 파일 분석 하는 프로그램.. ㅋㅋ | hooni | 2013.04.23 | 6915 |
639 | Develop | [c] pcap을 이용한 패킷 분석 ㅎㅎ | hooni | 2003.04.23 | 10251 |
638 | Develop | [c] RSA 암호화 구현(gmp 라이브러리 활용) | hooni | 2016.10.03 | 1017 |