UIDynamicAnimatorDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/UIKit.framework
Availability
Available in iOS 7.0 and later.
Declared in
UIDynamicAnimator.h

Overview

To respond to the pausing or resumption of UIKit dynamic animation, configure a custom class to adopt the UIDynamicAnimatorDelegate protocol. Then, in a dynamic animator (an instance of the UIDynamicAnimator class), set the delegate to be an instance of your custom class.

Tasks

Responding to Animation Pausing and Resumption

Instance Methods

dynamicAnimatorDidPause:

Called when a dynamic animator pauses the animations for its behaviors’ associated dynamic items. (required)

- (void)dynamicAnimatorDidPause:(UIDynamicAnimator *)animator
Parameters
animator

The dynamic animator that paused its animation.

Availability
  • Available in iOS 7.0 and later.
Declared In
UIDynamicAnimator.h

dynamicAnimatorWillResume:

Called when a dynamic animator is about to resume the animations for its behaviors’ associated dynamic items. (required)

- (void)dynamicAnimatorWillResume:(UIDynamicAnimator *)animator
Parameters
animator

The dynamic animator that is about to resume animation.

Availability
  • Available in iOS 7.0 and later.
Declared In
UIDynamicAnimator.h