Monogame: Unsupported Landscape Screen Orientation on iOS 8.0

| | August 5, 2015

Did anyone have a fix on the landscape orientation problem that monogame has or is it the iOS 8.0 that has a bug?

I have visited the github of monogame and tried to compile the latest developer branch of monogame source code and referenced the produced .dll file to my game but I still have no lack on this problem…

PROBLEM: Whenever I start my game (I use iOS simulator and never had tried on a device yet), and I click/touch somewhere on the right part of the simulator, and the application outputs this

-> unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow: <UIWindow: 0x7d2c2690; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x7d2c30b0>; layer = <UIWindowLayer: 0x7d2c27c0>>

I am guessing that the orientation might be set to landscape. but the application is still on portrait. what might be the cause of this and is there a solution already to this problem? please notify me. thanks…

PS: My game is on landscape only and I have already tried setting the Supported Device Orientations to Landscape Left and Right while deselecting other orientations (Portrait) and also tried programmatically changing the orientation to

graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;

But nothing is going well for me right now. Hope someone can help. Thanks… :)

Leave a Reply