I have an image that represents sun rays and I need to make rotate those sun rays on iphone 4 screen. The very intuitive solution that comes to my head is to have quite large image, put it in UIImageView, set its anchor point and then use CA animation (animation). I’m designing my UI with interface builder and the problem is I’m unable to put large image that is larger than active screen (root view) size to UIImageView because is just crops it. Any thoughts and solutions?
Share
Maybe something like this (in code, not in IB):
Then, to animate it, maybe something like this:
(Don’t forget to release the img when you’re done using it — I did it above as an example, but you could move the release anywhere you needed)