0

According to the documentation of ignoreSnapshotOnNextApplicationLaunch: UIKit captures your app’s user interface and stores it in an image file. When your app is relaunched, the system displays this snapshot image in place of your app’s default launch image to preserve the notion that your app was still running.

My question is: I think the mechanism above is as default, but why most of the App I have tried is not like this include my App. So what should I do display the snapshot instead of the launch image?

1 Answers1

0

No, by default app will display launch screen.

Above mentioned is to ignore snapshot on next launch if you are using state preservation process

See more details on state preservation process here: https://developer.apple.com/documentation/uikit/view_controllers/preserving_your_app_s_ui_across_launches?language=objc

Satish
  • 2,015
  • 1
  • 14
  • 22
  • Thanks a lot! It's very helpful – Jenson Zhang Jun 08 '18 at 08:39
  • One more question, i add application:shouldSaveApplicationState: and application:shouldRestoreApplicationState: to enable state preservation and restoration for my app, but it still show the default launch image, is there something wrong or some other initialization i lost? – Jenson Zhang Jun 08 '18 at 08:44