Instance Property


A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable.


@property CGRect contentsRect;


By default, this property is set to the unit rectangle (0.0,0.0,1.0,1.0), which results in all of the layer’s contents being drawn.

If pixels outside the unit rectangle are requested, the edge pixels of the contents image are extended outwards.

If you assign an empty rectangle to this property, the results are undefined.

See Also

Providing Emitter Cell Content


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


An optional array containing the sub-cells of this cell.