iOS Developer Library

Developer

UIKit Framework Reference UIDynamicAnimatorDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

UIDynamicAnimatorDelegate

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.

Inheritance


Not Applicable

Import Statement


import UIKit @import UIKit;

Availability


Available in iOS 7.0 and later.
  • Called when a dynamic animator pauses the animations for its behaviors’ associated dynamic items. (required)

    Declaration

    Swift

    optional func dynamicAnimatorDidPause(_ animator: UIDynamicAnimator)

    Objective-C

    - (void)dynamicAnimatorDidPause:(UIDynamicAnimator *)animator

    Parameters

    animator

    The dynamic animator that paused its animation.

    Import Statement

    import UIKit

    Availability

    Available in iOS 7.0 and later.

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

    Declaration

    Swift

    optional func dynamicAnimatorWillResume(_ animator: UIDynamicAnimator)

    Objective-C

    - (void)dynamicAnimatorWillResume:(UIDynamicAnimator *)animator

    Parameters

    animator

    The dynamic animator that is about to resume animation.

    Import Statement

    import UIKit

    Availability

    Available in iOS 7.0 and later.