iOS 应用程序关闭后会再次启动
在 IOS 4 中,如果应用程序被用户手动关闭,那么它不会再次启动,启动时会崩溃,我无法执行任何操作。 我正在 iPod4 上测试 当我按 ipad 的硬键两次并手动关闭应用程序时,我无法再次启动应用程序。
如何完全终止应用程序我需要写一些东西吗 - (void)applicationWillTerminate:(UIApplication *)application
应用程序委托?
In IOS 4 if the application is closed by user manually then it is not launching again it crashes when launched and i cant do anything.
I am testing it on Ipod4
When i pressed the hard key of ipad twice and close the app manually then i am not able to start the application again.
how to terminate the application completely do i need to write something in- (void)applicationWillTerminate:(UIApplication *)application
of appdelegate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您的代码存在一些严重问题。
应用程序应该支持进入后台并再次从后台转换到活动状态,以及一旦由操作系统启动或由用户通过“双主页点击 -> 启动”从后台终止。关闭'动作。
不支持通过代码强制终止应用程序,这实际上会导致苹果在您提交应用程序时拒绝您的应用程序。
Seems like you have some serious issues with your code.
An application should support both going into the background and transitioning out of it into active state again, as well as terminating from the background once that is initiated by the OS, or by the user via the 'double home tap -> close' action.
Terminating the application forcibly through code is not supported and will actually result in apple rejecting your app when you submit it.