iPhone UIApplicationExitsOnSuspend 无效

发布于 2024-09-16 13:51:27 字数 100 浏览 2 评论 0原文

UIApplicationExitsOnSuspend 不会强制我的应用程序退出。我已经清理过目标、删除了应用程序、重建并重新安装了很多次。

我真的需要我的应用程序退出。

UIApplicationExitsOnSuspend does not force my app to exit. I have cleaned the target, removed the app, rebuilt, and reinstalled many times.

I really need my app to exit.

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

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

发布评论

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

评论(4

妖妓 2024-09-23 13:51:27

您是否链接了 SDK 4?该键仅在这种情况下有效。

Did you link against SDK 4? This key is only effective in this case.

小傻瓜 2024-09-23 13:51:27

您确定您的应用程序仍然有效吗?

双击主页按钮时,您将始终看到您的应用程序:这是最近使用的应用程序的列表,而不是当前正在运行的应用程序的列表

在应用程序委托的 applicationWillTerminate: 方法中放置一个断点,如果它停止在这个方法中,就意味着你被杀死了。

希望这有帮助,
文森特

Are you sure your application is still active ?

You will always see your application when double tapping the home button : this is a list of the recently used apps, not a list of currently running apps

Put a breakpoint in the applicationWillTerminate: method of your app delegate, if it stops in this method it means your is killed.

Hope this helps,
Vincent

江心雾 2024-09-23 13:51:27

有时,当人们键入“在 plist 文件中将其设置为 true”时,他们真正的意思是:

  1. 将“UIApplicationExitsOnSuspend”添加为 info.plist 文件中的键
  2. ,右键单击 UIApplicationExitsOnSuspend 并将“type”设置为布尔值,
  3. 然后单击复选框 以字符串格式显示

TRUE 或 YES 在 info.plist 文件中不起作用。

BOOLEAN 是唯一启用它的标志。

Sometimes when people type "set it to true in the plist file" what they really mean is:

  1. Add "UIApplicationExitsOnSuspend" as a key in the info.plist file
  2. right-click on UIApplicationExitsOnSuspend and set "type" to boolean
  3. click the checkbox that then appears

TRUE or YES in a string format does NOT work in the info.plist file.

BOOLEAN is the only flag that enables it.

七堇年 2024-09-23 13:51:27

尝试一下它可以帮助您

在 info.plist 中添加“应用程序不在后台运行”=“是”。

就是这样。现在您第二次打开同一个应用程序。它会以起始页打开。

谢谢

Try this it helps you

in info.plist, add "Application does not run in background" = "YES".

thats it.now you open second time same application.It open with start page.

Thanks

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