35、[ iOS ] UITextField 当密码输入不匹配
2016-04-14 本文已影响290人
天听云道
CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"transform.translation.x"];
anim.repeatCount = 1;
anim.values = @[@-20,@20,@-20];
[text.layer addAnimation:anim forKey:nil];