Understanding Launch iPhone / iPad Images

As suggested by Apple, I provided a launch image equal to my iOS app for the homepage.

I'm currently testing an iPhone simulator, and I wanted to know if the same thing is happening on real devices.

Everything works fine, however, when I am on pages other than the homepage and I exit the application by pressing a button, and then when I log in again, the launch images are displayed for a moment and then the last viewed pages appear unexpectedly.

I wonder how I can avoid this "flicker" of pages. I do not know if this is important, but I use storyboards.

+4
source share
1 answer

This is the expected behavior if you run the application again. See My answer in another question for a similar question.

To explain, the Default.png image is used when the OS cannot take a screenshot of your last view state. Providing the OS a little longer to take a screenshot, the application will prevent the use of Default.png . This is done so that the device does not just display a black screen, after which your application appears.

I am not aware of the functionality to see if the OS ended up taking a screenshot. If it were possible, you could place a UIImageView on top of your last view and make a more subtle fade that you get again.

+2
source

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


All Articles