Why does connecting back to an iOS background NSURLSession take too long waiting on a lock, crashing the app?

对着背影说爱祢 提交于 2019-12-04 05:22:45
Rikkles

See Application Specific Information: Application failed to launch in time (iOS)? .

Basically there are 2 things to keep in mind:

  1. Upon startup, you only have a few seconds to finish the startup procedure. Any longer running code should be called asynchronously after the app has started.

  2. Make absolutely sure that any UI code in your callbacks/blocks/closures/etc... is called on the main thread. You must force it to do so.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!