iOS退出(0)已弃用? [英] iOS is exit(0) deprecated?

查看:189
本文介绍了iOS退出(0)已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道iOS应用程序中是否弃用了exit(0)?我知道手动终止应用程序并不是一个好的决定,但如果我们使用代码,Apple是否会禁止应用程序?

does anyone know if exit(0) is deprecated in iOS application? I know it is not a good decision to manually terminate the App, but does Apple ban the application if we use the code?

推荐答案

我有一个被拒绝的应用程序,因为退出方式(通过UIAlertView),当用户点击正确的按钮时执行退出(5)

I got an app which was rejected because of a way of exit (via UIAlertView), doing an exit(5) when user click on the correct button.

我收到了:


我们发现您的应用包含用于退出应用的UI控件。
这不符合iOS人机界面指南,因为App Store审查指南要求

We found that your app includes a UI control for quitting the app. This is not in compliance with the iOS Human Interface Guidelines, as required by the App Store Review Guidelines.

请参阅随附的屏幕截图/ s供参考。

Please refer to the attached screenshot/s for reference.

iOS人机界面指南指定,

The iOS Human Interface Guidelines specify,

始终准备停止iOS应用程序当人们按下
主页按钮打开另一个应用程序或使用设备
功能(例如手机)时停止。特别是,人们不会点击
应用程序关闭按钮或选择退出为了提供良好的
停止体验,iOS应用程序应该:

"Always Be Prepared to Stop iOS applications stop when people press the Home button to open a different application or use a device feature, such as the phone. In particular, people don’t tap an application close button or select Quit from a menu. To provide a good stopping experience, an iOS application should:


  • 尽快保存用户数据尽可能合理,因为退出或终止通知可以随时到达。

  • Save user data as soon as possible and as often as reasonable because an exit or terminate notification can arrive at any time.

停止时以最精细的细节保存当前状态这样可以让人们在再次启动
申请时不会失去他们的背景很多,如果你的应用显示滚动数据,
保存当前滚动位置。

Save the current state when stopping, at the finest level of detail possible so that people don’t lose their context when they start the application again. For example, if your app displays scrolling data, save the current scroll position."

这将是适合删除退出
应用程序的任何机制。

It would be appropriate to remove any mechanisms for quitting your app.

隐藏退出可被理解为崩溃用户,没有?

A "hidden" exit could be understood as a crash for the user, no?

这篇关于iOS退出(0)已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆