UIView(FTAnimationAdditions) Category Reference
| 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
-
– slideInFrom:duration:delegate:Slides the view in from the direction edge or corner of the screen.
-
– slideInFrom:duration:delegate:startSelector:stopSelector:Slides the view in from a specified edge or corner of the screen.
-
– slideOutTo:duration:delegate:Slides the view out to the direction edge or corner of the screen.
-
– slideOutTo:duration:delegate:startSelector:stopSelector:Slides the view out to a specified edge or corner of the screen.
-
– slideInFrom:inView:duration:delegate:startSelector:stopSelector:Slides the view in from the direction edge or corner of the enclosingView.
-
– slideOutTo:inView:duration:delegate:startSelector:stopSelector:Slides the view out of the enclosingView to the direction edge or corner.
-
– 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.
-
– 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.
-
– 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.
-
– 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.
-
– 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.
-
– 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.
Fading the view in and out
-
– fadeIn:delegate:Causes the view to fade in from invisible to fully opaque.
-
– fadeIn:delegate:startSelector:stopSelector:Causes the view to fade in from invisible to fully opaque.
-
– fadeOut:delegate:Causes the view to fade out until it is invisible.
-
– fadeOut:delegate:startSelector:stopSelector:Causes the view to fade out until it is invisible.
-
– fadeBackgroundColorIn:delegate:Causes the background color of the view to fade in from invisible to completely opaque.
-
– fadeBackgroundColorIn:delegate:startSelector:stopSelector:Causes the background color of the view to fade in from invisible to completely opaque.
-
– fadeBackgroundColorOut:delegate:Causes the background color of the view to fade out until it is invisible.
-
– fadeBackgroundColorOut:delegate:startSelector:stopSelector:Causes the background color of the view to fade out until it is invisible.
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)stopSelectorDiscussion
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.hbackInFrom: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)delegateParameters
- 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
CAAnimationDelegatemethods.
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.hbackInFrom: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)stopSelectorParameters
- 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.hbackOutTo: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)stopSelectorDiscussion
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.hbackOutTo: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)delegateParameters
- 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
CAAnimationDelegatemethods.
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.hbackOutTo: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)stopSelectorParameters
- 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.hfadeBackgroundColorIn:delegate:
Causes the background color of the view to fade in from invisible to completely opaque.
- (void)fadeBackgroundColorIn:(NSTimeInterval)duration delegate:(id)delegateParameters
- duration
The duration (in seconds) of the animation.
- delegate
The delegate will be forwarded the standard
CAAnimationDelegatemethods.
- 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.hfadeBackgroundColorIn: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)stopSelectorParameters
- 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.hfadeBackgroundColorOut:delegate:
Causes the background color of the view to fade out until it is invisible.
- (void)fadeBackgroundColorOut:(NSTimeInterval)duration delegate:(id)delegateParameters
- duration
The duration (in seconds) of the animation.
- delegate
The delegate will be forwarded the standard
CAAnimationDelegatemethods.
- 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.hfadeBackgroundColorOut: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)stopSelectorParameters
- 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.hfadeIn:delegate:
Causes the view to fade in from invisible to fully opaque.
- (void)fadeIn:(NSTimeInterval)duration delegate:(id)delegateParameters
- duration
The duration (in seconds) of the animation.
- delegate
The delegate will be forwarded the standard
CAAnimationDelegatemethods.
- 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.hfadeIn: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)stopSelectorParameters
- 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.hfadeOut:delegate:
Causes the view to fade out until it is invisible.
- (void)fadeOut:(NSTimeInterval)duration delegate:(id)delegateParameters
- duration
The duration (in seconds) of the animation.
- delegate
The delegate will be forwarded the standard
CAAnimationDelegatemethods.
- 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.hfadeOut: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)stopSelectorParameters
- 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.hfallIn: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)delegateDiscussion
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.hfallIn: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)stopSelectorDiscussion
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.hfallOut:delegate:
The view will shrink to nothing in the middle of the screen and disappear.
- (void)fallOut:(NSTimeInterval)duration delegate:(id)delegateDiscussion
The view will shrink to nothing in the middle of the screen and disappear.
Declared In
FTAnimation+UIView.hfallOut: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)stopSelectorDiscussion
The view will shrink to nothing in the middle of the screen and disappear.
Declared In
FTAnimation+UIView.hflyOut:delegate:
The view will scale up to twice its size while fading to invisible.
- (void)flyOut:(NSTimeInterval)duration delegate:(id)delegateDiscussion
The view will scale up to twice its size while fading to invisible.
Declared In
FTAnimation+UIView.hflyOut: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)stopSelectorDiscussion
The view will scale up to twice its size while fading to invisible.
Declared In
FTAnimation+UIView.hpopIn: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)delegateDiscussion
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.hpopIn: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)stopSelectorDiscussion
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.hpopOut: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)delegateDiscussion
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.hpopOut: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)stopSelectorDiscussion
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.hslideInFrom:duration:delegate:
Slides the view in from the direction edge or corner of the screen.
- (void)slideInFrom:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegateParameters
- 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
CAAnimationDelegatemethods.
Discussion
Slides the view in from the direction edge or corner of the screen.
Declared In
FTAnimation+UIView.hslideInFrom: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)stopSelectorParameters
- 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.hslideInFrom: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)stopSelectorDiscussion
Slides the view in from the direction edge or corner of the enclosingView.
Declared In
FTAnimation+UIView.hslideOutTo:duration:delegate:
Slides the view out to the direction edge or corner of the screen.
- (void)slideOutTo:(FTAnimationDirection)direction duration:(NSTimeInterval)duration delegate:(id)delegateParameters
- 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
CAAnimationDelegatemethods.
Discussion
Slides the view out to the direction edge or corner of the screen.
Declared In
FTAnimation+UIView.hslideOutTo: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)stopSelectorParameters
- 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.hslideOutTo: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)stopSelectorDiscussion
Slides the view out of the enclosingView to the direction edge or corner.
Declared In
FTAnimation+UIView.h