gpt4 book ai didi

iphone - 如何在用户点击按钮时以编程方式关闭应用程序

转载 作者:可可西里 更新时间:2023-11-01 04:05:31 25 4
gpt4 key购买 nike

我需要在用户点击按钮时关闭应用程序(我需要保留 IBAction 以关闭应用程序)。就像在游戏菜单中一样,当我们点击它时我们有退出按钮,我们从游戏中出来。同样的事情我需要。我该怎么做。提前致谢

最佳答案

请看: How do I programmatically quit my iPhone application?

WARNING: It is possible to quit the application by calling exit. Applications calling exit will appear to the user to have crashed, rather than performing a graceful termination and animating back to the Home screen. Such usage provides a negative experience and is strongly discouraged.

关于iphone - 如何在用户点击按钮时以编程方式关闭应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4021118/

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