Possible to hide app icon in iOS?

流过昼夜 提交于 2019-12-10 12:08:29

问题


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.


回答1:


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.

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.

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

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



回答2:


No, You cannot hide an App icon (legally). That is, Apple does not allow such a feature and it cannot be done in Non-Jailbreak apps. You can only do this if you Jailbreak your iOS.



来源:https://stackoverflow.com/questions/22139217/possible-to-hide-app-icon-in-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!