Apple AppStore Reject 审核被拒绝之 Guideline 4.0 - Design

   |   1 minute read   |   Using 382 words

####被拒绝理由(Mac App):

Guideline 4.0 - Design

We noticed an issue with your app’s user interface that contributes to a lower-quality user experience than App Store users expect.

Specifically, we found that when the user closes the main application window there is no menu item to re-open it.

####原因分析:

单窗口Mac应用在用户点击窗口左上角的红色关闭x按钮后,程序主窗口确实是关闭了,但是程序进程并没有完全退出,此时仍然可以在屏幕左上角的位置看见这个被关闭应用的窗口菜单。问题也就出在这里,苹果要求这种情况下需要在这个窗口菜单里必须要有一个可以重新启动应用的菜单项(至于具体放在哪个菜单下面没有硬性规定,但一般是放在Window菜单项下比较合适)。

####解决方案:

方案一:当用户点击应用左上角的红叉关闭应用时,让你的应用完全退出即可(既然都完全退出了也就不存在从菜单项里再打开的问题了,只能点击桌面icon重新打开了)。

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
        return true
}
    
方案二:在窗口菜单中添加一个菜单项目,当用户点击的时候用来重新打开应用主窗口即可。


comments powered by Disqus