iOS Reference Library Apple Developer
Search

CALayoutManager Protocol Reference

(informal protocol)

Framework
/System/Library/Frameworks/QuartzCore.framework
Declared in
CALayer.h
Companion guides

Overview

CALayoutManager is an informal protocol implemented by Core Animation layout managers. If a layer’s sublayers require custom layout you create a class that implements this protocol and set it as the layer’s layout manager using the CALayer method setLayoutManager:. Your custom layout manager is then used when the layer invokes setNeedsLayout or layoutSublayers.

Tasks

Layout Layers

Instance Methods

layoutSublayersOfLayer:

Layout each of the sublayers in the specified layer.

- (void)layoutSublayersOfLayer:(CALayer *)layer

Parameters
layer

The layer that requires layout of its sublayers.

Discussion

This method is called when the sublayers of the layer may need rearranging, and is typically called when a sublayer has changed its size. The receiver is responsible for changing the frame of each sublayer that requires layout.

Availability
  • Available in iOS 3.0 and later.
Declared In
CALayer.h



Last updated: 2007-07-24

Did this document help you? Yes It's good, but... Not helpful...