I have an iphone app with an SQLite db. I also have a MySQL database on a web server that the app will call to get new records on app start up. I created a web service that will receive the date of latest record in the app database and do the query to pull all the new records. The new records will be put into an array and JSON encoded to go back to the app.
Do I then put the new records into NSDictionary and write them to the app’s SQLite database?
Yes when you received results from API in JSON you need to create
NSDictionayorNSArrayto do this you’ve to need JSON parser for iOS. After parsing the JSON you can insert it into your SQLite DB.