(iphone)InAppSettings/InAppSettingsKit 库问题
似乎有很多 InAppSettings 的拥护者 https://bitbucket.org/keegan3d/inappsettings/wiki/Home
在我的应用程序中,我需要从不同视图获得多个不同的设置页面。
(从概念上讲,应用程序内有多个应用程序,每个应用程序都需要自己的设置页面)
我想也许会有一些简单的方法来创建设置页面,而无需 IB 或大量编码,并且肯定找到了 InAppSettings 和 InAppSettingsKit( http://inappsettingskit.com/)
在深入研究其中之一之前,我有两个担忧。
- 是否可以为一个应用程序创建如上所述的多个设置页面?
- 我不喜欢在 iPhone 设置应用程序中创建设置条目的应用程序,我只想让设置仅出现在我的应用程序中,这两个库可以吗?
- (非常可选)当给定设置页面中的所有设置下方有巨大的空白空间时,能够显示图像会很高兴。
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定 InAppSettings,但 InAppSettingsKit 能够满足所有三个要求。
要执行 (2),只需创建一个名为 InAppSettings.bundle 的包,而不是通常的 Settings.bundle。
对于 (1):在 InAppSettings.bundle 中创建具有不同名称的 .plist,并将其名称放在 IASKAppSettingsViewController 的 _file 属性中。
对于(3):它指定的自定义视图控制器(IASKAppSettingsViewController)是高度可自定义的,您只需阅读代码即可了解它们如何呈现 CreditsFooter 来放置您的自定义图像。
抱歉英语不好
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
InAppSettingKit 旨在为您提供与 Settings.App 几乎相同的功能。
正如 @Artur Sampaio 所说,您应该为每个概念应用程序创建一个单独的 appname.plist,然后在您的 Settings.bundle 中为每个“概念应用程序”添加一个指向 的 PSChildPaneSpecifier应用程序名称.plist
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