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!
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!
It should work if you use transforms as:
I've uploaded some sample code of a working solution. Add your logic to rotate it automatically...
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: