iOS app shows last shown view instead of splash screen- but only sometimes

后端 未结 5 1375
太阳男子
太阳男子 2021-01-19 12:49

Sometimes when I open my app (either while resuming it after it was dormant for a while or while opening it after it has been \'quit\'), the splash screen, which basically j

5条回答
  •  既然无缘
    2021-01-19 12:58

    The cause of the problem was that I was performing a long-ish operation upon applicationWillTerminate:, which delayed the 'true' termination of the app for a short bit (I assume). So, when I re-open the app right after closing it, this operation (writing data to disk) is still going on, so the app hasn't truly been quit. This is what I believe is the issue from what I can deduce.

提交回复
热议问题