¡@

Home 

2014/10/15 ¤U¤È 10:15:51

iphone Programming Glossary: vigourofshake

UIView shake animation

http://stackoverflow.com/questions/3844557/uiview-shake-animation

shake a UIView it does not work void animate const int numberOfShakes 8 const float durationOfShake 0.5f const float vigourOfShake 0.1f CAKeyframeAnimation shakeAnimation CAKeyframeAnimation animation CGRect frame lockView.frame CGMutablePathRef shakePath.. for int index 0 index numberOfShakes index CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY frame CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY.. vigourOfShake CGRectGetMinY frame CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY frame CGPathCloseSubpath shakePath shakeAnimation.path shakePath shakeAnimation.duration durationOfShake lockView.layer..

Facebook like login screen and validation(Window Shake Effect) [closed]

http://stackoverflow.com/questions/9447281/facebook-like-login-screen-and-validationwindow-shake-effect

Shake Effect . CAKeyframeAnimation shakeAnimation NSRect frame int numberOfShakes 4 float durationOfShake 0.2f float vigourOfShake 0.04f CAKeyframeAnimation shakeAnimation CAKeyframeAnimation animation CGMutablePathRef shakePath CGPathCreateMutable CGPathMoveToPoint.. int index for index 0 index numberOfShakes index CGPathAddLineToPoint shakePath NULL NSMinX frame frame.size.width vigourOfShake NSMinY frame CGPathAddLineToPoint shakePath NULL NSMinX frame frame.size.width vigourOfShake NSMinY frame CGPathCloseSubpath.. frame frame.size.width vigourOfShake NSMinY frame CGPathAddLineToPoint shakePath NULL NSMinX frame frame.size.width vigourOfShake NSMinY frame CGPathCloseSubpath shakePath shakeAnimation.path shakePath shakeAnimation.duration durationOfShake return shakeAnimation..