单击 UITableView didSelectRowAtIndexPath ios-Objective C 时自动滚动
Auto scroll while clicking UITableView didSelectRowAtIndexPath ios-ObjectiveC
如何在单击时向上滚动 TableView 或 单元格从选项表单 UITableView didSelectRowAtIndexPath
加载更多
NSIndexPath* ip = [NSIndexPath indexPathForRow:[arrData count]-1 inSection:0];
[self.tableView scrollToRowAtIndexPath:ip atScrollPosition:UITableViewScrollPositionTop animated:NO];
arrData 是您提供给 TableView 的数据源。通过将 IndexPath 设置为 [arrData count],您可以转到 TableView
的底部
如何在单击时向上滚动 TableView 或 单元格从选项表单 UITableView didSelectRowAtIndexPath
加载更多NSIndexPath* ip = [NSIndexPath indexPathForRow:[arrData count]-1 inSection:0];
[self.tableView scrollToRowAtIndexPath:ip atScrollPosition:UITableViewScrollPositionTop animated:NO];
arrData 是您提供给 TableView 的数据源。通过将 IndexPath 设置为 [arrData count],您可以转到 TableView
的底部