I have a falling UIView object, and I'm trying to get the current location of it. I know that its possible to get the original location, but how can i get the current location?
Asked
Active
Viewed 596 times
1 Answers
0
Yes! When a uiview is being moved as part of an animation you can get details about its current state by looking at the presentation layer e.g.
myView.layer.presentationLayer.center
will return a CGPoint with the current location.

MathewS
- 2,267
- 2
- 20
- 31