So far I have a very simple application and it will not rotate the view. ShouldAutorotateToInterfaceOrientation
Called when the application starts, but never rotates again. My code is as follows:
public class NotebookSelectionController : UIViewController {
public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation) {
return true;
}
}
My delegate application code is as follows:
public override bool FinishedLaunching(UIApplication app, NSDictionary options) {
var notebookController = new NotebookSelectionController();
window.AddSubview(notebookController.View);
window.MakeKeyAndVisible();
return true;
}
What am I missing?
source
share