测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可 | MIT |
发布最后发布 | 2017年7月 |
由CaoJun、lilonglong、SunLiTing、LittleChuan维护。
参考Animate.CSS CSShake Magic.CSS
#import <YTXAnimations/UIView+YTXAnimateCSS.h>
#import <YTXAnimations/UIView+YTXCSShake.h>
#import <YTXAnimations/UIView+YTXMagicCSS.h>
CAAnimation * tada = [view ytx_tadaAnimationWithDurationTime:1];
tada.repeatCount = CGFLOAT_MAX;
[view ytx_basicShakeAnimation];
//removeAnimationForKey the key is function name. Please pay attention to colon!!! "ytx_tadaAnimationWithDurationTime:"
[view.layer removeAnimationForKey:@"ytx_tadaAnimationWithDurationTime:"];
// No colon
[view.layer removeAnimationForKey:@"ytx_basicShakeAnimation"];
您不应该仅使用:pod "YTXAnimations"。自从CocoaPods 0.36+版本起,您应该进行类似的操作:
pod 'YTXAnimations', :subspecs => ["AnimateCSS", "CSShake", "MagicCSS"]
YTXAnimations基于MIT许可。请参阅LICENSE文件以获取更多信息。