[英]Xamarin IOS project allows rotation despite info.plist property
I'm trying to disable auto-rotate from my Xamarin.IOS project for IPhone/IPad. 我正在尝试从Xamarin.IOS项目为iPhone / iPad禁用自动旋转。 First off, I only have Portrait enabled in my info.plist.
首先,我仅在info.plist中启用了Portrait。 The screen still rotates so I included all of the code from this previously answered question to every UIViewController involved and AppDelegate.cs (Except for the boolean property and conditional statement) as described in the solution.
屏幕仍然旋转,因此我将所有先前解决的问题中的所有代码都包括到解决方案中所述的每个UIViewController以及AppDelegate.cs(布尔属性和条件语句除外)中。 Regardless, when I run the app on the IPad I've been using to design it, the screen rotates to any orientation.
无论如何,当我在用于设计的iPad上运行该应用程序时,屏幕都会旋转到任何方向。 Any help or insight is appreciated.
任何帮助或见解表示赞赏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.