iphone Programming Glossary: rightwobble
How do you make images wobble like on the iPhone home screen? http://stackoverflow.com/questions/4980122/how-do-you-make-images-wobble-like-on-the-iphone-home-screen this CGAffineTransform leftWobble CGAffineTransformRotate CGAffineTransformIdentity RADIANS 15.0 CGAffineTransform rightWobble CGAffineTransformRotate CGAffineTransformIdentity RADIANS 15.0 view.transform leftWobble starting point UIView beginAnimations.. setAnimationRepeatCount 5 adjustable UIView setAnimationDuration 0.125 UIView setAnimationDelegate self view.transform rightWobble end here auto reverse UIView commitAnimations You would also need to add this define #define RADIANS degrees degrees M_PI..
iOS icon jiggle algorithm http://stackoverflow.com/questions/6604356/ios-icon-jiggle-algorithm leftWobble CGAffineTransformMakeRotation degreesToRadians kAnimationRotateDeg 1.0 r CGAffineTransform rightWobble CGAffineTransformMakeRotation degreesToRadians kAnimationRotateDeg r self.transform leftWobble starting point self layer.. UIViewAnimationOptionAutoreverse animations ^ UIView setAnimationRepeatCount NSNotFound self.transform rightWobble completion nil void stopJiggling self.layer removeAllAnimations self.transform CGAffineTransformIdentity Credit where credit's..
how to create iphone's wobbling icon effect? http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect 180.0 CGAffineTransform leftWobble CGAffineTransformRotate CGAffineTransformIdentity RADIANS 5.0 CGAffineTransform rightWobble CGAffineTransformRotate CGAffineTransformIdentity RADIANS 5.0 itemView.transform leftWobble starting point UIView beginAnimations.. setAnimationDelegate self UIView setAnimationDidStopSelector @selector wobbleEnded finished context itemView.transform rightWobble end here auto reverse UIView commitAnimations ... void wobbleEnded NSString animationID finished NSNumber finished context..
|