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 instance 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.