iphone - 警告 : Supported orientations are not matched pairs (Info. plist)

标签 iphone xamarin.ios orientation simulator

我在编译时遇到这个错误,不知道为什么,但似乎来自它的另一个问题是模拟器的方向是横向的(这就是我的意图),但是屏幕的 x/y 位置坐标仍然认为它们是纵向的,所以模拟器显示在风景中,但图形的绘制就像是纵向的,这就是我的 info.plist 的样子:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationLandscapeLeft</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationLandscapeLeft</string>
    </array>
</dict>
</plist>

最佳答案

可能已经太晚了(我通过谷歌搜索找到了它),但是警告(如果是您提到的错误)是一个简单的检查(以确保你没有忘记什么)。

IOW 修复警告(不是通过添加 LandscapeRight 来显示)不会改变应用程序的行为。真正的问题在其他地方。

关于iphone - 警告 : Supported orientations are not matched pairs (Info. plist),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5755315/

相关文章:

iphone - sqlite 与 mysql iPhone 有多相似

iphone - 单点触控 : WebRequest connection fails after switching off Airplane Mode on iPhone

ipad - 强制 iPhone 方向

ios - 在旋转时更改 UITableViewCell 中的文本对齐方式

actionscript-3 - 通过设备旋转更改 AIR 应用程序屏幕方向 - 不同的设备对待 StageOrientation 的方式是否不同?

iphone - 过程代码,vs oopy 代码和性能

iphone - 插入 UIImageView 作为 subview 滞后

iOS无法将字典值获取到数组

c# - Iphone,从 MonoTouch 获取国家列表

iphone - UIWebview 和 iPhone 内容不回发(ASP.NET 浏览器功能问题)