When I try to take the snapshot in any portrait/landscape mode , it comes inverted, (Rotated to 180 degree).
I tried to find the set开发者_高级运维tings everywhere but couldn't find it.
What do I have to do?
I ran into the same problem today and when I found no other answers and only your question, I decided I had to try to figure it out on my own (BTW - nothing in Apple Dev forums either).
I found that my device was rotated to Landscape before I started my app and my app locks the orientation to Portrait by overloading the shouldRotateOnOrientationChange and returning YES when orientation == Portrait.
I exited my app, rotated my iPad to Landscape and back to Portrait. Then started my app. When I went to get the screenshot it was correct.
I am suspecting that the original state is in the debugger / XCode and is not updated, therefore, the Organizer sees a static setting.
Thanks for the reply above. Unlock the device orientation lock (Hardware switch near volume buttons) solved my problem. Maybe it helps someone.
精彩评论