Instance Method


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


- (BOOL)contentsAreFlipped;

Return Value

YES if the layer contents are implicitly flipped when rendered or NO if they are not. This method returns NO by default.


This method provides information about whether the layer’s contents are being flipped during drawing. You should not attempt to override this method and return a different value.

If the layer needs to flip its content, it returns YES from this method and applies a y-flip transform to the graphics context before passing it to the layer’s drawInContext: method. Similarly, the layer converts any rectangles passed to its setNeedsDisplayInRect: into the flipped coordinate space.

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.


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


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


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.