Contents

Develop
2014.04.08 15:48

[ios] UITableView 특정 Row만 Update

Views 5792 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
여러개의 특정 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];


?

List of Articles
No. Category Subject Author Date Views
637 Develop [c] GD라이브러리 설치 테스트 소스 file hooni 2013.04.23 9238
636 Develop 다양한 방법으로 아주 큰 수(Big Number) 계산.. ㅋㅋ hooni 2013.04.23 9242
635 Develop [c] 스토리지 클래스(변수) hooni 2003.04.23 9246
634 Develop [linux] 프로세스 관련 시스템콜 hooni 2003.04.23 9251
633 Develop [js] 키보드 아스키 코드 확인하는 간단한 소스 hooni 2003.04.23 9268
632 Develop [jsp] 페이지에 한글이 정상적으로 보이지 않을 때.. hooni 2013.04.23 9270
631 Develop [c] 근의 공식으로 2차방정식 풀기.. file hooni 2003.04.23 9271
630 Develop [ios] Facebook SDK 로그인 설명 file hooni 2017.04.19 9278
629 Develop [php] 마시마로 캐릭터 방명록 file hooni 2003.04.23 9285
628 Develop [unix] Java 애플릿용 HTML 자동 생성 hooni 2014.02.19 9289
627 Develop [c] 문자열 정렬 함수 qsort() hooni 2003.04.23 9292
626 Develop [c] 그래픽 차트 라이브러리.. 나중에 확인 해볼 거.. file hooni 2013.04.23 9292
Board Pagination Prev 1 ... 41 42 43 44 45 46 47 48 49 50 ... 99 Next
/ 99