I have a problem that [UIDevice currentDevice].orientation returns 0 in some cases. In my understanding this should never happen.
It's not even at startup. Do I now have to create my own i开发者_JAVA技巧nstance variable that keeps track of every rotation and stores it?
I was having the same issue, and then came across this article:
Don't Rely On UIDevice Orientation For Rotation
I hope that helps.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论