Reputation: 79
I got a magnetic heading value from a compass. Now I need to rotate the needle based on the heading(angle) from that. Please someone guide me how to do this.
Thanks Prior...
Upvotes: 0
Views: 333
Reputation: 36647
You can always transform (rotate) your layer (compass) with CGAffineTransformMakeRotation. For further reference take a look at this question.
Upvotes: 2