Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 4766 댓글 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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
1173 | Develop | [ios] 아이폰용 앱 오픈 소스들 | hooni | 2013.04.23 | 466242 |
1172 | Develop | [ios] 언어, 지역, 국가 설정 가져오기 | hooni | 2014.05.12 | 269356 |
1171 | Develop | 자주 쓰는 Docker 명령어 alias | hooni | 2020.01.10 | 268720 |
1170 | Etc | 베지어 곡선 (Bezier curve) | hooni | 2013.08.18 | 220319 |
1169 | Develop | [ios] Start developing your navigation app for CarPlay without enrollment | hooni | 2020.02.22 | 124616 |
1168 | Develop | [android] 만화 어플 소스코드 | hooni | 2013.04.23 | 92833 |
1167 | Develop | 레고 마인드스톰 NXT 수도쿠, 큐브 소스코드.. 20 | hooni | 2013.04.23 | 81376 |
1166 | Algorithm | 디피헬만(Diffie-Hellman) 초간단 개념.. | hooni | 2013.04.23 | 81016 |
1165 | Develop | [c#] Hashtable <-> Json (dll 포함) | hooni | 2013.04.23 | 80649 |
1164 | Develop | [C#] MD5, SHA1 해시 & 인코딩 | hooni | 2013.04.23 | 77851 |
1163 | Develop | [android] 점심 해결 앱 소스 코드 ㅋㅋ | hooni | 2013.04.23 | 76393 |
1162 | PPT | [android] XML파서(XMLParser)의 종류와 성능 비교에 대한 발표 자료 | hooni | 2013.04.23 | 75633 |