Reputation: 41
I have a UIImageView that is undergoing a simple translation animation, and I am trying to get the coordinates of the view while it is moving via the imageview.frame.origin.x property. However, it is giving me the coordinates that the imageview will be at after the animation. Is there any way to get the current coordinates?
Upvotes: 0
Views: 267
Reputation: 56625
Yes, you need to check the coordinates of the presenationLayer. You can read a detailed description about it in my blog post about tapping moving layers.
Upvotes: 1