我想问一下是否可以在按下按钮后锁定UITable的滚动?有什么代码吗?
下面是我的代码,我想将 UITable 滚动到顶部,然后用户将无法再向下滚动。
- (IBAction)export:(id)sender{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionTop
animated:YES];
}