简体   繁体   中英

Using InAppSettingsKit, how can I make it not show up in the settings app?

I am using InAppSettingsKit. https://github.com/futuretap/InAppSettingsKit

I want to make it so the settings panel doesn't show up in settings, because right now it does. Is there any way to do this?

NOTE: Starting in iOS 8 all apps will show in the Settings app regardless of what you do.

The project page says To support traditional Settings.app panes, the app must include a Settings.bundle with at least a Root.plist . So if you are targeting less than iOS 8 or just don't want to allow users access to the settings via the Settings app, than removing the bundled file would be the way to go.

UPDATE:

I believe what you need to do is rename your Settings.bundle file so iOS doesn't pick up on it. The alternative bundle name this library picks up on is InAppSettings.bundle so try renaming Settings.bundle to InAppSettings.bundle .

https://github.com/futuretap/InAppSettingsKit ->

Alternatively, you can create a totally separate bundle named InAppSettings.bundle instead of the usual Settings.bundle. The latter approach is useful if you want to suppress the settings in Settings.app.

You just need to rename your settings bundle to something other than Settings.bundle.

This is from the IASK github readme.

In summary, the plists are searched in this order:

  1. InAppSettings.bundle/FILE~DEVICE.inApp.plist
  2. InAppSettings.bundle/FILE.inApp.plist
  3. InAppSettings.bundle/FILE~DEVICE.plist
  4. InAppSettings.bundle/FILE.plist
  5. Settings.bundle/FILE~DEVICE.inApp.plist
  6. Settings.bundle/FILE.inApp.plist
  7. Settings.bundle/FILE~DEVICE.plist
  8. Settings.bundle/FILE.plist

Try using any one of the first 4 and the settings pannel shouldn't end up in the settings app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM