iOS滚动到UITable视图中的一个部分
没有人知道如何以编程方式滚动表视图到索引path的部分。 我想要做的是有两个部分和if语句的tableview例如
if loading = true scroll the table view up to hide the first section when finished loading scroll table view back down to show first section
这里是片段:
NSIndexPath * indexPath = [NSIndexPath indexPathForRow:row inSection:section]; [_tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];