Instance Property


A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.


@property BOOL drawsAsynchronously;


When this property is set to YES, the graphics context used to draw the layer’s contents queues drawing commands and executes them on a background thread rather than executing them synchronously. Performing these commands asynchronously can improve performance in some apps. However, you should always measure the actual performance benefits before enabling this capability.

The default value for this property is NO.

See Also

Configuring the Layer’s Rendering Behavior


A Boolean value indicating whether the layer contains completely opaque content.


A bitmask defining how the edges of the receiver are rasterized.

- contentsAreFlipped

Returns a Boolean indicating whether the layer content is implicitly flipped when rendered.


A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.


A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable


The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable


A hint for the desired storage format of the layer contents.

- renderInContext:

Renders the layer and its sublayers into the specified context.