Realm - Add file with initial data to project (iOS/Swift)

后端 未结 7 1445
独厮守ぢ
独厮守ぢ 2020-12-23 12:47

I\'m developing an application for iOS using swift and chose Realm as a database solution for it. I wrote default data in AppDelegate using write/add function from realm doc

7条回答
  •  轮回少年
    2020-12-23 13:06

    If you want to open it straight from the bundle location and not bother copying it to the default Realm path, look at the implementation here

提交回复
热议问题