我有这行代码:
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];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)