UIView animation category with pop
support ios 8 or later
pod 'pop', '~> 1.0.10'
#import "UIView+CLPopAnimation.h"
#pragma mark - actions
-(void)fadeIn{
[self.button7 cl_fadeIn];
}
-(void)fadeOut{
[self.button8 cl_fadeOut];
}
-(void)hide{
[self.button6 cl_hide:^{
NSLog(@"hide");
[self.button6 removeFromSuperview];
}];
}
-(void)show{
[self.button5 cl_show];
}
-(void)jelly{
[self.button4 cl_jelly];
}
-(void)shake{
[self.button cl_shake];
}
-(void)springMove{
//[self.button2 springMove...];
[self.button2 cl_springMove:^{
NSLog(@"springMove block");
} point:[NSValue valueWithCGPoint:CGPointMake(200, 300)],[NSValue valueWithCGPoint:CGPointMake(200, 400)], nil];
}
-(void)move{
[self.button3 cl_move:[NSValue valueWithCGPoint:CGPointMake(200, 300)],[NSValue valueWithCGPoint:CGPointMake(200, 450)],nil];
}