-1

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?

ABakerSmith
  • 22,759
  • 9
  • 68
  • 78
Liad
  • 21
  • 1

1 Answers1

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