I\'m animating the center property of a view in my program. During the animation, I need notifications when center hits a particular value.
I tried adding the myself
You can retrieve the values representing the current state of the UIView's animating layer by accessing its presentation layer. This can be done using code like the following:
CGPoint currentCenter = [[view.layer presentationLayer] center];
Unfortunately, the presentation layer's properties are not KVO-compliant, so the best way I can think of for tracking the current value is to keep polling the presentation layer until it gets near the location you want.