tag:blogger.com,1999:blog-4602316338438806651.post435476446483435742..comments2024-03-26T21:44:06.085-07:00Comments on Mobile and Social Network Technology: How to create wiggle animation for your UIView ?Reetu Rajhttp://www.blogger.com/profile/08458984428135077241noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4602316338438806651.post-8362388617907509822015-01-02T15:17:09.534-08:002015-01-02T15:17:09.534-08:00Thanks! This is just what I was looking for.
Here...Thanks! This is just what I was looking for.<br /><br />Here's a Swift version of the same code:<br /><br /> var transform:CATransform3D = CATransform3DMakeRotation(0.08, 0, 0, 1.0);<br /> var animation:CABasicAnimation = CABasicAnimation(keyPath: "transform");<br /> animation.toValue = NSValue(CATransform3D: transform);<br /> animation.autoreverses = true;<br /> animation.duration = 0.5;<br /> animation.repeatCount = 10000;<br /> animation.delegate=self;<br /> myView.layer.addAnimation(animation, forKey: "wiggleAnimation");znesichttps://www.blogger.com/profile/17282303041983157436noreply@blogger.com