Develop
2014.04.08 15:48
[ios] UITableView 특정 Row만 Update
조회 수 4864 댓글 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];
-
[ios] 앱의 로컬 js 파일에서 해당 프로젝트의 이미지 불러오기
-
[ios] 문자열로 함수 실행하기 (eval 함수처럼)
-
[ios] URL 랜딩 속도(OpenURL 10초 정지되는) 이슈
-
[js] 2048 예쁘게 만들고 있는거.. ㅋㄷ
-
[php] XE 스킨에서 특정 도메인 리다이렉션
-
[php] XE에서 도메인 별로 광고 다르게 적용하기
-
[maven] Mac OS에 메이븐(maven) 설치하기
-
[ios] iOS 앱 아이콘을 만드는 유틸
-
[ios] Xcode의 디버그 모드에서 콜스택
-
[ios] binary를 C코드로 변환
-
[ios] APNS에 사용할 인증서 만들기 (KeyChain에 있는 인증서 Export)
-
[ios] iOS앱의 Xcode 빌드 과정