我目前正在使用 Xcode 4.5,我想知道如何通过查看模拟器来确定我们当前所处的方向?
以前,模拟器中有一个主页按钮,可以让您知道您所在的方向:
UIInterfaceOrientationPortrait,
UIInterfaceOrientationPortraitUpsideDown,
UIInterfaceOrientationLandscapeLeft, or
UIInterfaceOrientationLandscapeRight
但是,我不知道如何在最新版本的模拟器中做到这一点。我错过了什么?
编辑:
我想知道如何仅通过查看模拟器以编程方式确定方向,这很有可能。
这是我在启动 iPad 模拟器时看到的快照:
对于 iPhone 视网膜
适用于 iPhone
我检查了选项,我看不出我们是如何知道模拟器是在 UIInterfaceOrientationLandscapeLeft 还是 UIInterfaceOrientationLandscapeRight 中,除了 iPhone 的情况。
对于 iPad 和 iPhone Retina Simulators,我找不到相同的。
以编程方式,它可能在一个答案中提到,但我想知道是否有办法在检查模拟器本身时找到它。
我可能会错过什么?