Skip to content
Ilho Ahn edited this page Nov 19, 2013 · 2 revisions

##Summary OneLine Animation Effect Simple! For usually used effects.

  • Effects
  • Animate moving view
  • In and out

##Effects

####+ (CAKeyframeAnimation*)dockBounceAnimationWithViewHeight:(CGFloat)viewHeight

Make UIView animation like dock bounce.

##In and out

####+ (void) fadeIn:(UIView *)view ####+ (void) fadeIn:(UIView *)view interval:(float)time callBack:(void(^)(void))callback; ####+ (void) fadeOut:(UIView *)view ####+ (void) fadeOut:(UIView *)view interval:(float)time callBack:(void(^)(void))callback; Animate Fade In and Out

Example)

   [AnimationUtil fadeOut:self.ui_label interval:1. callBack:^{
      NSLog("Animation End");
   }];

##Animate moving view

Relative Position

+ (void) move:(UIView *) view moreX:(float)x;

+ (void) move:(UIView *) view moreX:(float)x interval:(float)time callBack:(void(^)(void))callBack;

+ (void) move:(UIView *) view moreY:(float)y;

+ (void) move:(UIView *) view moreY:(float)y interval:(float)time callBack:(void(^)(void))callBack;

+ (void) move:(UIView *) view morePoint:(CGPoint)morePont interval:(float)time callBack:(void(^)(void))callBack;

It move +/-fromMoreY or x to current setted frame.origin.y or x

Absolute Position

+ (void) move:(UIView *) view toX:(float)x;

+ (void) move:(UIView *) view toX:(float)x interval:(float)time callBack:(void(^)(void))callBack;

+ (void) move:(UIView *) view toY:(float)y;

+ (void) move:(UIView *) view toY:(float)y interval:(float)time callBack:(void(^)(void))callBack;

+ (void) move:(UIView *) view toPoint:(CGPoint)point interval:(float)time callBack:(void(^)(void))callBack;

Fade In/Out with Moving animation

FadeIn+Move

Animate more pos -> current pos

It move +/-fromMoreY or x to current setted frame.origin.y or x Animate more pos -> current pos

+ (void) fadeInMove:(UIView *)view fromMoreY:(float)y interval:(float)time callBack:(void(^)(void))callback;
+ (void) fadeInMove:(UIView *)view fromMoreX:(float)x interval:(float)time callBack:(void(^)(void))callback;
+ (void) fadeInMove:(UIView *)view fromMorePoint:(CGPoint) morePoint interval:(float)time callBack:(void(^)(void))callback;

Animate more pos -> current pos

It move current setted frame.origin.y or x to +/-fromMoreY or x Animate current pos -> more pos

+ (void) fadeInMove:(UIView *)view moreY:(float)y interval:(float)time callBack:(void(^)(void))callback;
+ (void) fadeInMove:(UIView *)view moreX:(float)x interval:(float)time callBack:(void(^)(void))callback;
+ (void) fadeInMove:(UIView *)view morePoint:(CGPoint)morePoint interval:(float)time callBack:(void(^)(void))callback;

FadeOut+Move

Animate more pos -> current pos

It move +/-fromMoreY or x to current setted frame.origin.y or x Animate more pos -> current pos #####+ (void) fadeOutMove:(UIView *)view fromMoreY:(float)y interval:(float)time callBack:(void(^)(void))callback; #####+ (void) fadeOutMove:(UIView *)view fromMoreX:(float)x interval:(float)time callBack:(void(^)(void))callback; #####+ (void) fadeOutMove:(UIView *)view fromMorePoint:(CGPoint) morePoint interval:(float)time callBack:(void(^)(void))callback;

Animate current pos -> more pos

It move current setted frame.origin.y or x to +/-fromMoreY or x Animate current pos -> more pos #####+ (void) fadeOutMove:(UIView *)view moreY:(float)y interval:(float)time callBack:(void(^)(void))callback; #####+ (void) fadeOutMove:(UIView *)view moreX:(float)x interval:(float)time callBack:(void(^)(void))callback; #####+ (void) fadeOutMove:(UIView *)view morePoint:(CGPoint)morePoint interval:(float)time callBack:(void(^)(void))callback;

Version

Version 0.0.1 Build 61 Release 1

Clone this wiki locally