I created an iphone app which requires Sqlite for insert, update and delete records.The application is working fine in iphone simulator.
All functions are working (insert, update and delete record). But when I installed it in iphone or ipad. It always lock up, I searched it and they said, I need to copy the database to
the document folder, since you can only read the database from the app bundle. I have a code in the App Delegate class which check if the database is existing in the document folder.
If not it will copy the database from the bundle. I tried it in iphone simulator and it will indeed copy the database if its not existing.
The application really works fine in iphone simulator, no errors at all.
But when I installed it in the device. It will lockup once I insert or updated a record. But its working if I open the table view with the records from the DB and delete it.
I wonder what is the problem of my app, when select and delete is working in the device, but lock up when I tried to insert or update a record.