gpt4 book ai didi

iphone - IOS 调用 didFinishLaunchingWithOptions 的条件

转载 作者:技术小花猫 更新时间:2023-10-29 10:52:15 24 4
gpt4 key购买 nike

谁能告诉我除了应用程序首次启动时,委托(delegate)函数 didFinishLaunchingWithOptions 在哪些情况下会被 IOS 调用。我使用 XCode 将应用程序启动到设备中并删除了连接,然后尝试通过 wifi 向设备发送消息。然后我注意到 didFinishLaunchingWithOptions 被调用了几次。为什么会发生这种情况以及调用此函数的条件是什么。我无法弄清楚所有情况。提前致谢。

最佳答案

来自 Apple documentation :

You should use this method (and the corresponding application:willFinishLaunchingWithOptions: method) to complete your app’s initialization and make any final tweaks. This method is called after state restoration has occurred but before your app’s window and other UI have been presented. At some point after this method returns, the system calls another of your app delegate’s methods to move the app to the active (foreground) state or the background state.

关于iphone - IOS 调用 didFinishLaunchingWithOptions 的条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12599487/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com