iOS Application Configuration File

后端 未结 8 1465
南笙
南笙 2021-01-31 16:13

In a C# application I always used an app.config file to save some data for my application to load when needed (e.g Connection String).

Wha

相关标签:
8条回答
  • 2021-01-31 16:55

    In iOs every App has own sandbox which will be availble for that app only. So If you want that file to be read only access save it to Application Bundle. else save to Application folder.

    you Can not access Application folder directly So If you want to save your file to that folder you have to do it programmatically.

    0 讨论(0)
  • 2021-01-31 16:57

    I realize I'm late to the party, but after finding this stack overflow I was disheartened at the accepted answer, so I created a pod to solve it! This is based on the idea from @RafaelSteil's answer, but it has a simpler interface, caches the loaded config data, and it supports pods providing their own defaults which can be overridden by the main app. I hope it helps someone.

    0 讨论(0)
提交回复
热议问题