问题
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.
- Is it possible to create multiple settings page as mentioned above for one app?
- 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?
- (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