可以在iOS中隐藏应用程序图标吗?

问题描述:

我正在使用XCODE 5.我已将app icon image添加到项目中。有没有办法禁用或启用应用程序图标?禁用表示禁用时不显示图标,否则必须在设备/模拟器上显示图标。

I am using XCODE 5. I have added app icon image into project. Is there a way to disable or enable app icon? Disable means do not show icon when disabled otherwise must show icon on device/simulator.

我不是100%清楚您想要动态地/以编程方式隐藏图标。我没有明确地看到这个要求,所以我假设你不需要程序控制:

It's not 100% clear to me whether you want to hide the icon dynamically/programmatically, or not. I didn't see that requirement explicitly, so I'm assuming you don't need programmatic control:

这个可以完成,并且它确实要求越狱。

This can be done, and it does not require jailbreaking.

然而,这是苹果公司在他们的App Store中拒绝的东西。但是,请不要将App Store中不允许的内容与需要越狱的内容等同起来。那些不是一回事。您可能希望在不通过App Store分发的业余爱好者或企业应用中使用许多私有或未记录功能。

It is, however, something that Apple would reject in their App Store. Please, however, do not equate what is not allowable in the App Store with what requires jailbreaking. Those are not the same thing. There are many "private" or "undocumented" features you may want to use in a hobbyist or enterprise app that doesn't get distributed through the App Store.

隐藏SpringBoard上的应用程序图标,将其添加到您的Info.plist文件中:

To hide an app's icon on the SpringBoard, add this to your Info.plist file:

  <key>SBAppTags</key>
  <array>
     <string>hidden</string>
  </array>