Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

DismissViewController causes app to crash blaming 'unknown' orientation

$
0
0

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?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>