I'm using the new UIPreviewInteraction API and want to know the location where the user lifts up his finger.
Basically the flow that I want to create is:
Alright, turns out I was going about it the wrong way.
I was trying to receive touch updates in the
But there you'll only receive updates until the 'peek' is happening. After it ends, you no longer receive any updates.
However, if you override the
previewInteraction:didUpdateCommitTransition:ended: method you'll continue receiving touch location updates there using this code:
CGPoint touchPoint = [previewInteraction locationInCoordinateSpace:previewInteractionView];
You can find sample code from the Apple WWDC video here