[iPhone Dev] Table View를 마지막 셀로 scroll 시키기
Mar 22
iphone, Uncategorized ios, iPad, iphone, scroll, tableview, UITableView, 아이폰, 애플 No Comments
Table View를 마지막 셀로 scroll 시키기 입니다.
scrollToRowAtIndexPath:atScrollPosition: 으로 아래와 같이 할 수 있겠죠. 개수가 array이니 -1 이라는 부분만 주의하면 될 것입니다.NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[myTableView numberOfRowsInSection:0] - 1 inSection:0]; [myTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];Ref: http://www.iphonedevsdk.com/forum/iphone-sdk-development/10861-scrolltorowatindexpath-problem.html
