Instance Method

pinchWithScale:velocity:

Sends a pinching gesture with two touches.

Declaration

- (void)pinchWithScale:(CGFloat)scale velocity:(CGFloat)velocity;

Parameters

scale

The scale of the pinch gesture. Use a scale between 0 and 1 to "pinch close" or zoom out and a scale greater than 1 to "pinch open" or zoom in.

velocity

The velocity of the pinch in scale factor per second.

Discussion

The system makes a best effort to synthesize the requested scale and velocity, but absolute accuracy is not guaranteed. Some values may not be possible based on the size of the element's frame; these will result in test failures.

See Also

Performing Gestures

- swipeLeft

Sends a swipe-left gesture.

- swipeRight

Sends a swipe-right gesture.

- swipeUp

Sends a swipe-up gesture.

- swipeDown

Sends a swipe-down gesture.

- rotate:withVelocity:

Sends a rotation gesture with two touches.