Everytime my app start I have it check if there has been any changes in our server database since the last time the app started. If there is the server sends back a json string that I must parse and enter into my sqlite database in the app.
I do this from the AppDelegate, but my problem is that if there is a lot of data to update then the AppDelegate pushes the next ViewController before the update to the database is done. I would like to not allow the app to move onto the first ViewController until the database update is complete.
How would I go about doing this?
Or is there a better way to handle this?
Thank you!
Don’t display “nothing” till you check the database. Instead display a view that shows a message such as: “Checking for updates…”. If possible show a progress bar as well.