IOS ( Object-C )
[IOS / Object-C] - UITableView scroll bottom 스크롤 하단으로 보내기
Vivara
2016. 10. 5. 13:48
반응형
NSInteger i = [__tableView numberOfSections] - 1;
NSInteger lastRowIndex = [__tableView numberOfRowsInSection:i] - 1;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:lastRowIndex inSection:i];
[__tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
반응형