我想僅使用InAppSettingsKit來顯示iPhone的Settings.app中的設置。我對應用內設置有不同的自定義設置。這是可能的嗎?如何實現這一目標?Can InAppSettingsKit僅適用於Settings.app
-1
A
回答
0
爲了支持傳統Settings.app窗格,應用程序必須包含一個Settings.bundle與至少一個Root.plist指定與鍵NSUserDefaults的設置UI元素的連接。 InAppSettingsKit基本上只使用相同的Settings.bundle來完成它的工作。這意味着當你想包含一個新的設置參數時沒有額外的工作。它只需添加到Settings.bundle中,它就會出現在應用程序和Settings.app中。所有設置類型都支持文本字段,滑塊,切換元素,子視圖等。
的Plist檔案中搜索順序是:
InAppSettings.bundle /文件〜DEVICE.inApp.plist - InAppSettings.bundle/FILE.inApp.plist InAppSettings.bundle /文件〜DEVICE.plist InAppSettings.bundle/FILE.plist Settings.bundle/FILE〜DEVICE.inApp.plist Settings.bundle/FILE.inApp.plist Settings.bundle/FILE〜DEVICE.plist Settings.bundle/FILE.plist
我希望它有幫助!
編輯:自動在您的所有設置捆綁
的InAppSettingsKit庫檢索,依次我之前寫的。但是,settings.app只能搜索到Settings.bundle
。因此,如果您想爲您的應用使用單獨的設置文件(使用InAppSettingsKit),則可以爲您的設置應用創建一個Settings.bundle
,爲您的應用內設置創建一個InAppSettings.bundle
。
相關問題
- 1. 適用於Linux的CAN協議棧
- 2. SignalR - 僅適用於localhost
- 3. nginx禁用gzip僅適用於facebook crawler
- 4. UIScrollView僅適用於橫向
- 5. UIPinchGestureRecognizer僅適用於捏出
- 6. 僅適用於NonEmpty - SSAS MDX
- 7. Heroku僅適用於刷新
- 8. .htaccess - 僅適用於PHP?
- 9. 僅適用於Chrome的CSS?
- 10. textDocumentProxy僅適用於KeyboardViewController.swift?
- 11. UITabbar僅適用於橫向
- 12. window.scrollBy僅適用於Firefox?
- 13. System.getProperty(「catalina.base」)僅適用於Tomcat?
- 14. ExpectedInputs/possible_intents僅適用於「assistant.intent.action.TEXT」?
- 15. 「System.Net.Mail.DeliveryNotificationOptions」僅適用於Exchange嗎?
- 16. javadoc僅適用於package-info.java
- 17. 僅適用於WIFI的SyncAdapter
- 18. plone.app.caching僅適用於首頁
- 19. Application.DoEvents()僅適用於WinForms嗎?
- 20. .htaccess mod_rewrite僅適用於www
- 21. Keyup僅適用於remove()
- 22. 重氮僅適用於plone4?
- 23. AsyncTask.cancel僅適用於一次
- 24. style.backgroundImage僅適用於Firefox
- 25. 僅適用於iPad的Settings.bundle?
- 26. Making ofHideReadOnly僅適用於UseLatestCommonDialogs
- 27. jquery load()僅適用於alert()
- 28. GetPositionAtOffset僅適用於文本?
- 29. 數據註釋僅適用於編輯
謝謝你的回覆。我仍不確定這是否回答了我的問題。這是否意味着我添加的任何設置都將顯示在應用內和設置應用中?我希望它們僅出現在「設置」應用中。我不確定在settings.bundle和InAppSettings之間如何建立連接。 Settings.bundle只提供默認控件。它如何知道使用InAppSettings自定義類。我在哪裏將它們連接在一起? – 2012-04-26 16:55:28
所以你想要一個InAppSettingsKit不同於設置應用程序,不是嗎? – Garoal 2012-04-26 18:36:43
是的。你是對的,我想要一個InAppSettingsKit只用於iPhone的設置應用程序。我沒有將InAppSettingsKit用於應用內設置頁面。我不確定如何鏈接設置包和InAppSettingsKit。 – 2012-04-26 19:02:05