Xamarin.ios 对话框自动旋转
我似乎无法让MonoTouch.对话框旋转。在我的构造函数中,我将Autorotate设置为true。我还在info.plist的supported orientations部分添加了所有方向。我还重写了ShouldAutorotateToInterfaceOrientation方法以返回true。我遗漏了什么吗?当使用MonoDevelop的默认模板时,只需在每个Xamarin.ios 对话框自动旋转,xamarin.ios,rotation,autorotate,monotouch.dialog,Xamarin.ios,Rotation,Autorotate,Monotouch.dialog,我似乎无法让MonoTouch.对话框旋转。在我的构造函数中,我将Autorotate设置为true。我还在info.plist的supported orientations部分添加了所有方向。我还重写了ShouldAutorotateToInterfaceOrientation方法以返回true。我遗漏了什么吗?当使用MonoDevelop的默认模板时,只需在每个
(不仅仅是主模板)上设置Autorotate
为true
,就足够了
例如,这就是为什么旋转没有任何问题。您可能希望检查其代码并将其与您自己的代码进行比较