我有这行代码:
tableView.contentOffset = CGPointMake(0.0f,10000000.0f);
内容大小远小于10000000.0f,但UITableView仍然不会滚动到底部.我该怎么做?
解决方法
滚动到tableViewCell?
//for instance,you have 15 cells NSIndexPath *indexPath = [NSIndexPath indexPathForRow:14 inSection:0]; [self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];