UIWindow rendering using LaunchScreen image vs LaunchScreen story board

47 Views Asked by At

After the migration request that Apple has been requesting since this summer. I have successfully implemented the use of LaunchScreen with storyboard.

But this is not without consequences.

It has an impact on the displayed UI. I was wondering if it was possible to continue using the LaunchScreen storyboard but still display the old way with a black bar above and below when displaying the UI after login. This is because I have a large number of screens to edit.

As example, if FinishedLaunching I use these line:

mWindow = new UIWindow(new CGRect(0, 10, 320.0f, 569.0f));
mWindow.MakeKeyAndVisible()..

Instead of

mWindow = new UIWindow(UIScreen.MainScreen.Bounds)

I can see my UI rendered correctly. But it appears in the upper left corner instead of being resized to full screen.

Thanks.

Jp

1

There are 1 best solutions below

2
matt On

the old way with a black bar above and below when displaying the UI after login

The black bar was your bug. Because you had no launch storyboard, the app was being displayed in a special letterboxed mode, occupying only part of the screen. (See for example When upgrading to support iPhone X, font display smaller on older devices) Now you have fixed the bug at last and your app is displaying correctly, occupying the entire screen.