Reference 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"];
You shouldn't just use: pod "YTXAnimations". Since CocoaPods 0.36+ you should do something like:
pod 'YTXAnimations', :subspecs => ["AnimateCSS", "CSShake", "MagicCSS"]
YTXAnimations is available under the MIT license. See the LICENSE file for more info.