반응형
tableview 최상단으로 이동
[mTable setContentOffset:CGPointMake(0, 0) animated:NO];
테이블뷰 갱신이나 reload 시 자주 써먹게 되는 방법
update
테이블뷰 최하단으로 이동
[filedata count]은 row의 전체갯수이며 row의 마지막값은 전체갯수보다 항상 -1 작으므로
[filedata count] - 1
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[filedata count] - 1 inSection:0];
[mTable scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];
반응형
그리드형
'IT > iOS' 카테고리의 다른 글
| textview 키패드 backspace버튼 및 다음문장(return) 버튼 이벤트 알아내기 (0) | 2013.06.19 |
|---|---|
| static library 합치기 (0) | 2013.06.14 |
| navigationbar background image (0) | 2013.06.04 |
| tableview cell background image (0) | 2013.05.24 |
| 소수점 첫번째 자리까지 표시하기 (0) | 2013.05.09 |
| iOS 6.0 이하 버젼에서 앱 강제 종료 (0) | 2013.05.03 |
| 살인진드기 같은 버그 찾기 (0) | 2013.05.03 |
| 테이블뷰 다음 페이지 불러오기 (4) | 2013.04.22 |