You do not need to adjust the location if you registered PreviewDelegate with the correct source code. Therefore, instead of
[self registerForPreviewingWithDelegate:self sourceView:self.view];
You must register it as follows:
[self registerForPreviewingWithDelegate:self sourceView:self.tableView];
Then the location that you get from calling the delegate takes into account the / contentOffset scroll.
source
share