Older apps do not take up full iphone x screen

Hi,


I have come across an issue. The app is very old, written in Objective C and old as in written years and years ago before Swift.


The app builds and runs on simulator iOS 11 even, but the problem is the UIWindow has a frame width and height of 640 x 1136.


The app looks normal and fine on the iphone 8. But on the iPhone X there is a black bar on the top and a black bar on the bottom of the window. Increasing UIWindow frame height doesn't do anything.


Would like to know if anyone else has encountered such an issue and how can this be resolved?


Specs:

Xcode version 9.4.1

Older apps do not take up full iphone x screen
 
 
Q