C# Xamarin:GetSupportedInterfaceOrientations在iOS 8中缺失?

C# Xamarin:GetSupportedInterfaceOrientations在iOS 8中缺失?,c#,xamarin.ios,xamarin,C#,Xamarin.ios,Xamarin,当我在Xamarin for iOS 8的iOS 7中尝试编译这段工作代码时,它错误地说GetSupportedInterfaceOrientations不是一种方法,这是8.0 beta版中的一个突破性变化,我们正在研究修复它,它会影响UISplitViewController 一种解决方法是使用较新的、基于*委托的属性,该属性是这样引入并打破覆盖的: public override UIInterfaceOrientationMask GetSupportedInterfaceOri

当我在Xamarin for iOS 8的iOS 7中尝试编译这段工作代码时,它错误地说GetSupportedInterfaceOrientations不是一种方法,这是8.0 beta版中的一个突破性变化,我们正在研究修复它,它会影响UISplitViewController

一种解决方法是使用较新的、基于*委托的属性,该属性是这样引入并打破覆盖的:

    public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations ()
    {
        return UIInterfaceOrientationMask.All;
    }
注:下一个测试席和最终版本的XI 8有修复,覆盖将正常工作。

它仍然在UIViewController。您试图覆盖的类型和基类是什么?
using (UISplitViewController svc = new UISplitViewController ()) {
    svc.GetSupportedInterfaceOrientations = (UISplitViewController) => UIInterfaceOrientationMask.All;
}