Declared in FTAnimation+UIView.h

Overview

This category provides extra methods on UIView which make it very easy to use the FTAnimationManager pre-built animations.

Tasks

Sliding the view on and off the screen

Fading the view in and out

Scaling the view up and down

  • – popIn:delegate:

    Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

  • – popIn:delegate:startSelector:stopSelector:

    Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

  • – popOut:delegate:

    This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

  • – popOut:delegate:startSelector:stopSelector:

    This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

  • – fallIn:delegate:

    The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

  • – fallIn:delegate:startSelector:stopSelector:

    The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

  • – fallOut:delegate:

    The view will shrink to nothing in the middle of the screen and disappear.

  • – fallOut:delegate:startSelector:stopSelector:

    The view will shrink to nothing in the middle of the screen and disappear.

  • – flyOut:delegate:

    The view will scale up to twice its size while fading to invisible.

  • – flyOut:delegate:startSelector:stopSelector:

    The view will scale up to twice its size while fading to invisible.

Instance Methods

backInFrom:inView:withFade:duration:delegate:startSelector:stopSelector:

Backs the view in from a specified edge or corner of the enclosingView. The view will make a slight movement in the opposite direction before sliding over the enclosingView.

- (void)backInFrom:(FTAnimationDirection)direction inView:(UIView *)enclosingView withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

Backs the view in from a specified edge or corner of the enclosingView. The view will make a slight movement in the opposite direction before sliding over the enclosingView.

Declared In

FTAnimation+UIView.h

backInFrom:withFade:duration:delegate:

Backs the view in from a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding onscreen.

- (void)backInFrom:(FTAnimationDirection)direction withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate

Parameters

direction

The edge or corner of the screen where animation will end.

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

Discussion

Backs the view in from a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding onscreen.

Declared In

FTAnimation+UIView.h

backInFrom:withFade:duration:delegate:startSelector:stopSelector:

Backs the view in from a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding onscreen.

- (void)backInFrom:(FTAnimationDirection)direction withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

direction

The edge or corner of the screen where animation will originate.

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Backs the view in from a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding onscreen.

Declared In

FTAnimation+UIView.h

backOutTo:inView:withFade:duration:delegate:startSelector:stopSelector:

Backs the view off of a specified edge or corner of the enclosingView. The view will make a slight movement in the opposite direction before sliding off of the enclosingView.

- (void)backOutTo:(FTAnimationDirection)direction inView:(UIView *)enclosingView withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

Backs the view off of a specified edge or corner of the enclosingView. The view will make a slight movement in the opposite direction before sliding off of the enclosingView.

Declared In

FTAnimation+UIView.h

backOutTo:withFade:duration:delegate:

Backs the view out to a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding offscreen.

- (void)backOutTo:(FTAnimationDirection)direction withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate

Parameters

direction

The edge or corner of the screen where animation will end.

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

Discussion

Backs the view out to a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding offscreen.

Declared In

FTAnimation+UIView.h

backOutTo:withFade:duration:delegate:startSelector:stopSelector:

Backs the view out to a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding offscreen.

- (void)backOutTo:(FTAnimationDirection)direction withFade:(BOOL)fade duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

direction

The edge or corner of the screen where animation will originate.

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Backs the view out to a specified edge or corner of the screen. The view will make a slight movement in the opposite direction before sliding offscreen.

Declared In

FTAnimation+UIView.h

fadeBackgroundColorIn:delegate:

Causes the background color of the view to fade in from invisible to completely opaque.

- (void)fadeBackgroundColorIn:(NSTimeInterval)duration delegate:(id)delegate

Parameters

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

direction

The edge or corner of the screen where animation will end.

Discussion

Causes the background color of the view to fade in from invisible to completely opaque.

Declared In

FTAnimation+UIView.h

fadeBackgroundColorIn:delegate:startSelector:stopSelector:

Causes the background color of the view to fade in from invisible to completely opaque.

- (void)fadeBackgroundColorIn:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Causes the background color of the view to fade in from invisible to completely opaque.

Declared In

FTAnimation+UIView.h

fadeBackgroundColorOut:delegate:

Causes the background color of the view to fade out until it is invisible.

- (void)fadeBackgroundColorOut:(NSTimeInterval)duration delegate:(id)delegate

Parameters

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

direction

The edge or corner of the screen where animation will end.

Discussion

Causes the background color of the view to fade out until it is invisible.

Declared In

FTAnimation+UIView.h

fadeBackgroundColorOut:delegate:startSelector:stopSelector:

Causes the background color of the view to fade out until it is invisible.

- (void)fadeBackgroundColorOut:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Causes the background color of the view to fade out until it is invisible.

Declared In

FTAnimation+UIView.h

fadeIn:delegate:

Causes the view to fade in from invisible to fully opaque.

- (void)fadeIn:(NSTimeInterval)duration delegate:(id)delegate

Parameters

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

direction

The edge or corner of the screen where animation will end.

Discussion

Causes the view to fade in from invisible to fully opaque.

Declared In

FTAnimation+UIView.h

fadeIn:delegate:startSelector:stopSelector:

Causes the view to fade in from invisible to fully opaque.

- (void)fadeIn:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Causes the view to fade in from invisible to fully opaque.

Declared In

FTAnimation+UIView.h

fadeOut:delegate:

Causes the view to fade out until it is invisible.

- (void)fadeOut:(NSTimeInterval)duration delegate:(id)delegate

Parameters

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

direction

The edge or corner of the screen where animation will end.

Discussion

Causes the view to fade out until it is invisible.

Declared In

FTAnimation+UIView.h

fadeOut:delegate:startSelector:stopSelector:

Causes the view to fade out until it is invisible.

- (void)fadeOut:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Causes the view to fade out until it is invisible.

Declared In

FTAnimation+UIView.h

fallIn:delegate:

The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

- (void)fallIn:(NSTimeInterval)duration delegate:(id)delegate

Discussion

The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

Declared In

FTAnimation+UIView.h

fallIn:delegate:startSelector:stopSelector:

The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

- (void)fallIn:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

The view will fade in and shrink from double its size down to its regular size. This makes it appear as though the view is falling onto the screen from the user’s vantage point.

Declared In

FTAnimation+UIView.h

fallOut:delegate:

The view will shrink to nothing in the middle of the screen and disappear.

- (void)fallOut:(NSTimeInterval)duration delegate:(id)delegate

Discussion

The view will shrink to nothing in the middle of the screen and disappear.

Declared In

FTAnimation+UIView.h

fallOut:delegate:startSelector:stopSelector:

The view will shrink to nothing in the middle of the screen and disappear.

- (void)fallOut:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

The view will shrink to nothing in the middle of the screen and disappear.

Declared In

FTAnimation+UIView.h

flyOut:delegate:

The view will scale up to twice its size while fading to invisible.

- (void)flyOut:(NSTimeInterval)duration delegate:(id)delegate

Discussion

The view will scale up to twice its size while fading to invisible.

Declared In

FTAnimation+UIView.h

flyOut:delegate:startSelector:stopSelector:

The view will scale up to twice its size while fading to invisible.

- (void)flyOut:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

The view will scale up to twice its size while fading to invisible.

Declared In

FTAnimation+UIView.h

popIn:delegate:

Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

- (void)popIn:(NSTimeInterval)duration delegate:(id)delegate

Discussion

Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

Declared In

FTAnimation+UIView.h

popIn:delegate:startSelector:stopSelector:

Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

- (void)popIn:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

Pops the view in from the center of the screen similar to the animation of a UIAlertView. The view will start invisible and small in the center of the screen, and it will be animated to its final size with a rubber band bounce at the end.

Declared In

FTAnimation+UIView.h

popOut:delegate:

This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

- (void)popOut:(NSTimeInterval)duration delegate:(id)delegate

Discussion

This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

Declared In

FTAnimation+UIView.h

popOut:delegate:startSelector:stopSelector:

This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

- (void)popOut:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

This is the reverse of the popIn animation. The view will scale to a slightly larger size before shrinking to nothing in the middle of the screen.

Declared In

FTAnimation+UIView.h

slideInFrom:duration:delegate:

Slides the view in from the direction edge or corner of the screen.

- (void)slideInFrom:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegate

Parameters

direction

The edge or corner of the screen where animation will originate.

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

Discussion

Slides the view in from the direction edge or corner of the screen.

Declared In

FTAnimation+UIView.h

slideInFrom:duration:delegate:startSelector:stopSelector:

Slides the view in from a specified edge or corner of the screen.

- (void)slideInFrom:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

direction

The edge or corner of the screen where animation will originate.

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Slides the view in from a specified edge or corner of the screen.

Declared In

FTAnimation+UIView.h

slideInFrom:inView:duration:delegate:startSelector:stopSelector:

Slides the view in from the direction edge or corner of the enclosingView.

- (void)slideInFrom:(FTAnimationDirection)direction inView:(UIView *)enclosingView duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

Slides the view in from the direction edge or corner of the enclosingView.

Declared In

FTAnimation+UIView.h

slideOutTo:duration:delegate:

Slides the view out to the direction edge or corner of the screen.

- (void)slideOutTo:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegate

Parameters

direction

The edge or corner of the screen where animation will end.

duration

The duration (in seconds) of the animation.

delegate

The delegate will be forwarded the standard CAAnimationDelegate methods.

Discussion

Slides the view out to the direction edge or corner of the screen.

Declared In

FTAnimation+UIView.h

slideOutTo:duration:delegate:startSelector:stopSelector:

Slides the view out to a specified edge or corner of the screen.

- (void)slideOutTo:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Parameters

direction

The edge or corner of the screen where animation will end.

duration

The duration (in seconds) of the animation.

delegate

An object on which to send the startSelector and stopSelector messages. The animation framework does not retain delegate. If it is nil, neither message will be sent.

startSelector

A selector to be messaged on delegate after the animation has finished normally or been cancelled. This parameter can be nil.

Discussion

Slides the view out to a specified edge or corner of the screen.

Declared In

FTAnimation+UIView.h

slideOutTo:inView:duration:delegate:startSelector:stopSelector:

Slides the view out of the enclosingView to the direction edge or corner.

- (void)slideOutTo:(FTAnimationDirection)direction inView:(UIView *)enclosingView duration:(NSTimeInterval)duration delegate:(id)delegate startSelector:(SEL)startSelector stopSelector:(SEL)stopSelector

Discussion

Slides the view out of the enclosingView to the direction edge or corner.

Declared In

FTAnimation+UIView.h