The data in my sqlite table is not being displayed correctly, instead the default value I set in the core-data model is showing.
I added a new field in my sqlite table and updated my core data model. The attribute has the same name and data type as the field I just added in the sqlite file.
When I added the new core-data attribute I made sure to go add new data model version and then set that version.
I also made sure to reset the simulator and cleaned all targets in xcode.
I’m not getting any errors, it’s just that I can’t get the data to match up.
thanks for any help.
You may not mess with Core Data’s sqlite database directly. Quoth the documentation:
The correct way to do things is to update the Core Data model, follow the Core Data Model Versioning and Data Migration Programming Guide, and let Core Data handle updating the SQLite database itself.