Instance Method

scroll(to:)

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

Declaration

func scroll(to r: CGRect)

Parameters

theRect

The rectangle that should be visible.

See Also

Scrolling the layer

func scroll(to: CGPoint)

Changes the origin of the receiver to the specified point.