I need to create a game for a spinn开发者_运维知识库er. Just like attached image.
User can spin the pin and it will keep on spinning according to swipe velocity. Please let me know how can i achieve this functionality?
Thanks.
Please read http://www.raywenderlich.com
He has taken a lot of care in creating a great valuable resource for learning iPhone development, animation in particular. You'll be ready in no time :D
In a nutshell, there are three ways you can do this.
use Cocos2D
Use CoreAnimation
Use UIView's animation methods, but I'd favor the other two solutions, especially Cocos2D since I like it :D
精彩评论