Mac Developer Library

Developer

QuartzCore Framework Reference CAConstraintLayoutManager Class Reference

Options
Deployment Target:

On This Page
Language:

CAConstraintLayoutManager

The CAConstraintLayoutManager class provides a constraint-based layout manager. You use the shared instance of this object by assigning it to the layoutManager property of any layer objects to which you have added constraints. During a layout update, Core Animation uses the layout manager to update the size and position of the sublayers based on the registered set of constraints. More...

Inheritance


Conforms To


Import Statement


import QuartzCore @import QuartzCore;

Availability


Available in OS X v10.5 and later.
  • Returns the shared layout manager object.

    Declaration

    Swift

    class func layoutManager() -> AnyObject!

    Objective-C

    + (id)layoutManager

    Return Value

    The shared layout manager object.

    Discussion

    You can assign the returned object to any layers that manage layout using constraints.

    Import Statement

    import QuartzCore

    Availability

    Available in OS X v10.5 and later.