Landscape Only iPad App Using Mono Touch

I use Mono Touch to develop a landscape-design iPad app, but the simulator doesn't seem to rotate any of the views (or the main window) into the landscape.

I installed the SDK version and Minimum OS on 4.2. I also set the supported orientations Landscape.

In addition, I created a navigation controller that overrides ShouldAutorotateToInterfaceOrientationand sets it to true. Then I added it with help window.AddSubview(navigationController.View), but that didn't help either.

I use the Rotate Left / Right methods (under Hardware) in the simulator, but the whole application rotates with the window, and the application remains in mode Portrait. Even the status bar (carrier, time, battery) turns off to the right, and not up at the top of the screen.

Help?! Anyone ?!

+3
source share
1 answer

Have you installed a button UIInterfaceOrientationon the landscape?

In addition, in shouldAutorotateToInterfaceOrientationyou will only need to return true if the new orientation corresponds to the desired orientation.

+1
source

Source: https://habr.com/ru/post/1780978/


All Articles