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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论