A layer that displays scrollable content larger than its own bounds.


@interface CAScrollLayer : CALayer


The CAScrollLayer class is a subclass of CALayer that simplifies displaying a portion of a layer. The extent of the scrollable area of the CAScrollLayer is defined by the layout of its sublayers. The visible portion of the layer content is set by specifying the origin as a point or a rectangular area of the contents to be displayed. CAScrollLayer does not provide keyboard or mouse event-handling, nor does it provide visible scrollers.


Scrolling constraints


Defines the axes in which the layer may be scrolled.

Scrolling the layer

- scrollToPoint:

Changes the origin of the receiver to the specified point.

- scrollToRect:

Scroll the contents of the receiver to ensure that the rectangle is visible.


Scroll Modes

These constants describe the supported scroll modes used by the scrollMode property.


Inherits From

See Also

Advanced Layer Options


A layer that provides a way to asynchronously provide tiles of the layer's content, potentially cached at multiple levels of detail.


Objects used to create true 3D layer hierarchies, rather than the flattened hierarchy rendering model used by other CALayer classes.


A layer that creates a specified number of sublayer copies with varying geometric, temporal, and color transformations.

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