ShouldAutorotateToInterfaceOrientation() 공개 메소드

public ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
toInterfaceOrientation UIInterfaceOrientation
리턴 bool
예제 #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            dvc = new DialogViewController (
                new MonoTouch.Dialog.RootElement ("Root")
                {
                    new Section ("Crash reporting tester") {
                        new StyledStringElement ("Native crash", NativeCrash),
                        new StyledStringElement ("Unhandled exception", UnhandledException),
                    }
                }
            );

            dvc.Autorotate = true;
            dvc.ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation.Portrait);

            window.RootViewController = dvc;

            window.MakeKeyAndVisible ();

            return true;
        }