(iphone) InAppSettings/InAppSettingsKit library questions

本小妞迷上赌 提交于 2020-01-24 22:24:21

问题


It seems there are many advocates of InAppSettings https://bitbucket.org/keegan3d/inappsettings/wiki/Home

In my app, I need to have multiple different settings page from different views.
(Conceptually there are multiple apps within the app, and each app needs its own setting page)

I thought maybe there will be some easy way to create settings page without IB or enourmous coding, and surely found InAppSettings and InAppSettingsKit( http://inappsettingskit.com/)

I have 2 concerns before digging into one of them.

  1. Is it possible to create multiple settings page as mentioned above for one app?
  2. I don't like apps that create settings entry in the iPhone settings app, I just want the settings appear inside my app only, is this possible with the two libraries?
  3. (very optional) would be nice to be able to show an image when there are huge empty spaces below all the settings in a given setting page.

Thank you.


回答1:


I'm not sure about InAppSettings, but InAppSettingsKit is able to do all three demands. To do (2), just create a bundle named InAppSettings.bundle instead of the usual Settings.bundle.

For (1): Create .plists with different names inside the InAppSettings.bundle and have their name in the _file attribute of the IASKAppSettingsViewController.

For (3): The Custom View Controller (IASKAppSettingsViewController) it specifies is highly customizeable, and you can just read the code to see how they present the CreditsFooter to place your custom image.

Sorry for the bad english




回答2:


InAppSettingKit is designed to give you (alost)identical functionality to that of Settings.App.

As @Artur Sampaio says, you should create a separate appname.plist for each of your conceptual apps and then in your Settings.bundle add for each 'conceptual app' a PSChildPaneSpecifier that points to the appname.plist



来源:https://stackoverflow.com/questions/5322404/iphone-inappsettings-inappsettingskit-library-questions

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