Instance Property

position

The layer’s position in its superlayer’s coordinate space. Animatable.

Declaration

@property CGPoint position;

Discussion

The value of this property is specified in points and is always specified relative to the value in the anchorPoint property. For new standalone layers, the default position is set to (0.0, 0.0). Changing the frame property also updates the value in this property.

For more information about the relationship between the frame, bounds, anchorPoint and position properties, see Core Animation Programming Guide.

See Also

Modifying the Layer Geometry

frame

The layer’s frame rectangle.

bounds

The layer’s bounds rectangle. Animatable.

zPosition

The layer’s position on the z axis. Animatable.

anchorPointZ

The anchor point for the layer’s position along the z axis. Animatable.

anchorPoint

Defines the anchor point of the layer's bounds rectangle. Animatable.

contentsScale

The scale factor applied to the layer.