Protocol

CALayoutManager

Methods that allow an object to manage the layout of a layer and its sublayers.

Declaration

@protocol CALayoutManager

Topics

Managing Layout

- invalidateLayoutOfLayer:

Invalidates the layout of a layer so it knows to refresh its content on the next frame.

- layoutSublayersOfLayer:

Override to customize layout of sublayers whenever the layer needs redrawing.

- preferredSizeOfLayer:

Override to customize layer size.

Relationships

Inherits From

See Also

Layer Basics

CALayer

An object that manages image-based content and allows you to perform animations on that content.

CALayerDelegate

Methods your app can implement to respond to layer-related events.

CAConstraint

A representation of a single layout constraint between two layers.

CAConstraintLayoutManager

An object that provides a constraint-based layout manager.

CAAction

An interface that allows objects to respond to actions triggered by a CALayer change.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software