I am having a problem while trying to rotate UIImageview continuously with a ball’s image inside. I would like this ball to spin continuously on its center axis.
I have tried using CGAffineTransform but it didn’t work.
Please help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This may be an old Q but it’s near the top of search results for the topic. Here’s a more cut and dry solution: (make sure to import QuartzCore/QuartzCore.h)
Then, to
stopremove/reset the animation: (see comments for how to stop-in-place)In swift: