Contents

Develop
2014.04.08 15:48

[ios] UITableView 특정 Row만 Update

조회 수 4780 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
여러개의 특정 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];


?

  1. [ios] 앱의 로컬 js 파일에서 해당 프로젝트의 이미지 불러오기

  2. [ios] 문자열로 함수 실행하기 (eval 함수처럼)

  3. [ios] URL 랜딩 속도(OpenURL 10초 정지되는) 이슈

  4. [js] 2048 예쁘게 만들고 있는거.. ㅋㄷ

  5. [php] XE 스킨에서 특정 도메인 리다이렉션

  6. [php] XE에서 도메인 별로 광고 다르게 적용하기

  7. [maven] Mac OS에 메이븐(maven) 설치하기

  8. [ios] iOS 앱 아이콘을 만드는 유틸

  9. [ios] Xcode의 디버그 모드에서 콜스택

  10. [ios] binary를 C코드로 변환

  11. [ios] APNS에 사용할 인증서 만들기 (KeyChain에 있는 인증서 Export)

  12. [ios] iOS앱의 Xcode 빌드 과정

Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 ... 71 Next
/ 71