Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 5799 댓글 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];
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
1177 | System/OS |
해커스랩 깨기.. 후후.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 19811 |
1176 | Etc |
플라스터(Plaster) 수업 내용
![]() |
hooni | 2016.05.24 | 0 |
1175 | Develop | 프로그램 문서 관리 (Doxygen) | hooni | 2013.04.23 | 17837 |
1174 | Develop |
프로그래밍에서 foo, bar 함수의 유래
![]() |
hooni | 2013.06.25 | 22888 |
1173 | Develop | 프로그래밍 소스 관련 사이트.. | hooni | 2013.04.23 | 17902 |
1172 | Develop |
페이팔에서 돈 찾기 (Paypal withdraw)
![]() |
hooni | 2014.02.20 | 12753 |
1171 | Etc | 티스토리 테이블 html,css 구문 | hooni | 2013.11.03 | 17519 |
1170 | System/OS | 콘솔에서 패스워드 걸린 zip 압축하는 명령 | hooni | 2018.03.02 | 4267 |
1169 | System/OS |
컴파일러 수업 자료(교재 : 컴파일러 입문)
![]() |
hooni | 2003.04.23 | 23439 |
1168 | Develop |
캘리포니아 운전면허 족보
![]() |
hooni | 2017.06.12 | 2826 |
1167 | Etc |
캘리포니아 운전면허 문제
![]() |
hooni | 2017.07.22 | 3496 |
1166 | Develop |
최근 논문 자료 (2011/01/03, 만현형한테 보낸거..)
![]() |
hooni | 2013.04.23 | 10366 |