iPhone applicationDidFinishLaunching 在模拟器中调用一次

发布于 2024-08-16 07:06:00 字数 124 浏览 1 评论 0原文

我在 applicationDidFinishLaunching 方法中放置了一条 NSLog 语句。我构建并运行并查看日志输出。然后,如果我点击主页按钮(在模拟器中)并重新启动应用程序,我将看不到日志输出。

为什么?

I put an NSLog statement inside my applicationDidFinishLaunching method. I build and run and see the log output. Then if I hit the home button (in the simulator) and restart the app, I don't see the log output.

Why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无可置疑 2024-08-23 07:06:00

因为一旦您按下主页按钮,调试器就不再附加。

Because the debugger is no longer attached once you hit the home button.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文