Instance Method

display

Reloads the content of this layer.

Declaration

- (void)display;

Discussion

Do not call this method directly. The layer calls this method at appropriate times to update the layer’s content. If the layer has a delegate object, this method attempts to call the delegate’s displayLayer: method, which the delegate can use to update the layer’s contents. If the delegate does not implement the displayLayer: method, this method creates a backing store and calls the layer’s drawInContext: method to fill that backing store with content. The new backing store replaces the previous contents of the layer.

Subclasses can override this method and use it to set the layer’s contents property directly. You might do this if your custom layer subclass handles layer updates differently.

See Also

Providing the Layer’s Content

contents

An object that provides the contents of the layer. Animatable.

contentsRect

The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

contentsCenter

The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

- drawInContext:

Draws the layer’s content using the specified graphics context.