iOS8 landscape orientation not working properly?


I was about to release a game on the appstore for iphone and ipad. Today I updated to iOS 8 and discovered that the app isn’t setting the aspect ratio correctly. The aspect ratio is calculated dividing the viewport height by the viewport width. I had to put a delay, since the function getviewportsize did return 0 at the start of the game (I used Tappy Chicken as a reference).

Two questions then:

  1. Why is the viewport size not returning correctly in iOS 8 (while it was working in iOS7)?
  2. Why do we have to use a delay?

Thank you!

UPDATE: it seems the problem is that the app ignores the landscape mode (my app is landscape-only and the plist files is correctly set with UIInterfaceOrientationLandscapeLeft and Right).

More precisely, when I start the app in landscape, the app is as large as the width of the device as if it was in portrait mode.
(see picture below)


Howdy syncoff,

Thank you for reporting this issue. I have been investigating on why you could be coming across this error and then I noticed that iOS only supports portrait orientation and not landscape. You can see this by looking at this photo:

I have tried numerous ways to try and get into landscape mode but have been unsuccessful so far. Would you be able to provide a step by step walk through of how I may be able to recreate this issue on my end? Any additional information would be greatly appreciated.

Thank you for taking the time to answer,

I resolved this issue by updating from 4.3 to 4.4.

I’m seeing this problem in third-person code projects (not in blueprint) new and old. Using 4.43.

Howdy pchan126,

Are you currently using a mac to deploy your code based project to iOS? For windows, at this time. packaging is not fully supported. Any additional information would be greatly appreciated.

Thanks and have a great day!

Yes, I’m using a mac. Strangely the blueprint 3rd person project works okay, but after I just generate a code-based 3rd person game, I get this.

I just set up a new build on a mac mini and am getting the same results there. It should just be the stock 3rd person code project, so if there’s somewhere I can send the 230mb zip to get it looked at. :slight_smile:

Hey pchan126,

I have just got word that the landscape issue has been fixed in the 4.5 version of UE4. As of this time, I am uncertain of when the release of the version is going to happen but this release should solve your issue. If you see that it is still occurring in 4.5, I will be sure to re-open this issue and further investigate.


ver 4.5 is looking good

Sounds great pchan126. Thanks for the update and have a great day!