Declared in UIView+TwelvePrinciples.h
UIView+TwelvePrinciples.m

Overview

Additional functionality for UIView to animate.

Instance Methods

runForrestRunToPoint:withCompletion:

Run forrest. Run.

- (void)runForrestRunToPoint:(CGPoint)point withCompletion:(void ( ^ ) ( BOOL finished ))completion

Parameters

point

The place run to.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

runForrestRunWithDuration:delay:toPoint:completion:

Run forrest. Run.

- (void)runForrestRunWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay toPoint:(CGPoint)point completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

duration

The duration of the animation.

delay

The delay before the animation is played.

point

The place run to.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

shakeAnimationWithCompletion:

Shake the view.

- (void)shakeAnimationWithCompletion:(void ( ^ ) ( BOOL finished ))completion

Parameters

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

shakeAnimationWithDuration:delay:completion:

Shake the view.

- (void)shakeAnimationWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

duration

The duration of the animation.

delay

The delay before the animation is played.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

tickle

Tickle the view.

- (void)tickle

Declared In

UIView+TwelvePrinciples.h

tickleWithCompletion:

Tickle the view.

- (void)tickleWithCompletion:(void ( ^ ) ( BOOL finished ))completion

Parameters

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

tickleWithDuration:delay:downScale:completion:

Tickle the view.

- (void)tickleWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay downScale:(CGFloat)downScale completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

duration

The duration of the animation.

delay

The delay before the animation is played.

downScale

Downscale.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

wiggle

Wiggle the view.

- (void)wiggle

Declared In

UIView+TwelvePrinciples.h

wiggleWithDuration:delay:rotation:

Wiggle the view.

- (void)wiggleWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay rotation:(CGFloat)angle

Parameters

duration

The duration of the animation.

delay

The delay before the animation is played.

angle

The range the view wiggle.

Declared In

UIView+TwelvePrinciples.h

wiggleWithRotation:

Wiggle the view.

- (void)wiggleWithRotation:(CGFloat)angle

Parameters

angle

The range the view wiggle.

Declared In

UIView+TwelvePrinciples.h

zoomToXPoint:completion:

Zoom view to point.

- (void)zoomToXPoint:(CGFloat)endXPoint completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

endXPoint

The place to zoom to.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

zoomToYPoint:anticipation:duration:delay:completion:

Zoom view to point.

- (void)zoomToYPoint:(CGFloat)endYPoint anticipation:(CGFloat)anticipation duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

endYPoint

The place to zoom to.

anticipation

How much of a windup the view moves before zooming off.

duration

The duration of the animation.

delay

The delay before the animation is played.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

zoomToYPoint:completion:

Zoom view to point.

- (void)zoomToYPoint:(CGFloat)endYPoint completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

endYPoint

The place to zoom to.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h

zoomToYPoint:duration:delay:completion:

Zoom view to point.

- (void)zoomToYPoint:(CGFloat)endYPoint duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay completion:(void ( ^ ) ( BOOL finished ))completion

Parameters

endYPoint

The place to zoom to.

duration

The duration of the animation.

delay

The delay before the animation is played.

completion

The completion callback handler.

Declared In

UIView+TwelvePrinciples.h