Advise where to store data for iOS app

后端 未结 2 683
小鲜肉
小鲜肉 2021-01-20 18:34

I have created an app using ionic and cordova and now I want to remake it on iOS. I am working with iOS for the first time, and I cannot figure out how to store data. For ex

2条回答
  •  庸人自扰
    2021-01-20 18:55

    As the first comment says, your question is quite large. When you say 'one form on several view', I consider it as 'one form per view'. Keep It Simple S... ;) (Except if you use page control for your form.)

    Basically, you have three ways to store data :

    • NSUserDefaults : Store data in Dictionary for later use
    • File : Save data to a File (why not .csv like ?)
    • CoreData : You can persist arrays as binary data in Core Data

    There are numerous tutorials on these topics. www.raywenderlich.com site is a good one to begin...

提交回复
热议问题