dial movement for compass in iphone
I got a magnetic heading value from a compass. Now I need to rotate the needle based on the heading(angle) from that. Please someon开发者_StackOverflowe guide me how to do this.
Thanks Prior...
You can always transform (rotate) your layer (compass) with CGAffineTransformMakeRotation. For further reference take a look at this question.
精彩评论