ボタンを押した後に UITable のスクロールをロックすることは可能ですか? そのためのコードはありますか?
以下は私のコードです。UITable を一番上にスクロールすると、ユーザーは下にスクロールできなくなります。
- (IBAction)export:(id)sender{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionTop
animated:YES];
}