-
Notifications
You must be signed in to change notification settings - Fork 1
AnimationUtil
##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
+ (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
+ (void) move:(UIView *) view toPoint:(CGPoint)point interval:(float)time callBack:(void(^)(void))callBack;
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;
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;
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;
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 0.0.1 Build 61 Release 1