Reputation: 511
I wanted to know if there is a way to get informed that an animation has started on an UIView and ended. Like a delegate method (didBeginAnimating or something).
I know that I can check for animationkeys on a views layer, but that is not what I want. I need to turn off layer shadows when an animation began and on again when the animation is over. The problem is that this animation is called from another Object that doesn't know about this object.
Any thoughts ?
Upvotes: 2
Views: 110
Reputation: 247
there is delegate method called + (void)setAnimationWillStartSelector:(SEL)selector
(From UIView Class Reference: https://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/UIView/UIView.html#//apple_ref/occ/clm/UIView/setAnimationWillStartSelector:)
This is what you wanted?
Upvotes: 1