iOS Developer Library

Developer

UIKit Framework Reference UIMotionEffectGroup Class Reference

Options
Deployment Target:

On This Page
Language:

UIMotionEffectGroup

The UIMotionEffectGroup class manages a collection of motion effects that you want to apply to a view at the same time. This class behaves similarly to the CAAnimationGroup class in Core Animation. The key paths and values returned by each motion effect object are applied simultaneously and with the same timing. More...

Inheritance


Conforms To


Import Statement


import UIKit @import UIKit;

Availability


Available in iOS 7.0 and later.
  • An array of motion effect objects to apply as a group to the view.

    Declaration

    Swift

    var motionEffects: [AnyObject]!

    Objective-C

    @property(copy, nonatomic) NSArray *motionEffects

    Discussion

    The array contains one or more UIMotionEffect objects. When the viewer offset changes, each object in the group is asked for its key paths and updated values. Those values are then applied simultaneously.

    Import Statement

    import UIKit

    Availability

    Available in iOS 7.0 and later.