hungry not foolish
hungry not foolish

Reputation: 41

how do I check the current coordinates of a moving UIImageView?

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

Answers (1)

David Rönnqvist
David Rönnqvist

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

Related Questions