Sqlite inserts get lost after app restart

前端 未结 2 1255
刺人心
刺人心 2021-01-16 08:00

This is the insert code. It works fine until i close the app and start it again, then all changes are gone. I don\'t see any error, could it be some iphone specific issue?

2条回答
  •  春和景丽
    2021-01-16 08:36

    Is the SQLite database file in the AppBundle, if so you will need to copy it to the document directory if you want to make changes. You can't write to any files in your app bundle.

提交回复
热议问题