iOS Developer Library

Developer

Quartz Core Framework Reference NSValue Core Animation Additions

Options
Deployment Target:

On This Page
Language:

NSValue

Core Animation adds two methods to the Foundation framework’s NSValue class to support CATransform3D structure values.

  • Creates and returns an NSValue object that contains a given CATransform3D structure.

    Declaration

    Swift

    init(CATransform3D t: CATransform3D)

    Objective-C

    + (NSValue *)valueWithCATransform3D:(CATransform3D)aTransform

    Parameters

    aTransform

    The value for the new object.

    Return Value

    A new NSValue object that contains the value of aTransform.

    Availability

    Available in iOS 2.0 and later.

  • Returns an CATransform3D structure representation of the receiver.

    Declaration

    Swift

    var CATransform3DValue: CATransform3D { get }

    Objective-C

    @property(readonly) CATransform3D CATransform3DValue

    Return Value

    An CATransform3D structure representation of the receiver.

    Availability

    Available in iOS 2.0 and later.