xcode 4 Organizer iPad 2 屏幕截图已旋转
当我尝试以任何纵向/横向模式拍摄快照时,它会反转(旋转到 180 度)。
我试图到处寻找设置,但找不到。
我必须做什么?
When I try to take the snapshot in any portrait/landscape mode , it comes inverted, (Rotated to 180 degree).
I tried to find the settings everywhere but couldn't find it.
What do I have to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我今天遇到了同样的问题,当我没有找到其他答案而只有你的问题时,我决定必须尝试自己解决这个问题(顺便说一句 - Apple Dev 论坛中也没有任何内容)。
我发现在启动应用程序之前我的设备已旋转为横向,并且我的应用程序通过重载 shouldRotateOnOrientationChange 并在方向 == 纵向时返回 YES 来将方向锁定为纵向。
我退出了应用程序,将 iPad 旋转至横向,然后返回纵向。然后启动我的应用程序。当我去获取屏幕截图时,它是正确的。
我怀疑原始状态位于调试器/XCode 中并且未更新,因此,组织器看到静态设置。
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.