В MonoTouch 6.0.10 с SDK 6.1 у меня есть следующее в tabbarcontroller и navigationcontroller:
public override bool ShouldAutorotate()
{
return true;
}
public override UIInterfaceOrientationMask SupportedInterfaceOrientations()
{
var orientations = ParentViewController.GetSupportedInterfaceOrientations();
foreach ( var controller in ViewControllers )
orientations = orientations & controller.GetSupportedInterfaceOrientations();
return orientations;
}
В AppDelegate у меня есть:
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations (UIApplication application, UIWindow forWindow)
{
return UIInterfaceOrientationMask.All;
}
и в FinishedLaunching у меня есть:
window.RootViewController = tabController;
В tabbarcontroller и navigationcontroller возникает ошибка вида «HelloWorld.TabController.SupportedInterfaceOrientations() помечен как переопределение, но не найден подходящий метод для переопределения (CS0115)».
Любое предложение приветствуется!
Счет.