Hi guys,
I spent now at least 8 hours with no success. I am creating a new controller like that:
var newVC = (MyNavigationController)Storyboard.InstantiateViewController("myNavigationController");
NavigationController.PresentViewController(newVC, true, null);
When a user clicks Cancel button on a view controller that is root view controller for MyNavigationController the following is run
NavigationController.PopViewController(true);
And then the application crashes with the following:
Foundation.MonoTouchException: Objective-C exception thrown. Name: UIApplicationInvalidInterfaceOrientation Reason: preferredInterfaceOrientationForPresentation 'unknown' must match a supported interface orientation: 'portrait, landscapeLeft, landscapeRight, portraitUpsideDown'!
What is the reason? What do I do wrong?