adhees
adhees

Reputation: 79

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 someone guide me how to do this.

Thanks Prior...

Upvotes: 0

Views: 333

Answers (1)

Henrik P. Hessel
Henrik P. Hessel

Reputation: 36647

You can always transform (rotate) your layer (compass) with CGAffineTransformMakeRotation. For further reference take a look at this question.

Upvotes: 2

Related Questions