I’m learning sqlite in iphone in which I hava a query that when adding the sqlite file in to resources folder and running the application it works fine but data is not shown when I’m opening that sqlite file in sql manager. Plz give me a solution for that.
Share
later
Because you can’t write/modify files in the app bundle (for quite obvious security considerations).
If you want to modify a file programmatically, you have to copy it to the Library or Documents directory.
But really, you should have googled. There are several questions and answers about the very same problem, for example:
SQLite3 update not working
IOS sqlite update query issues
sqlite3 update not working in ios
sqlite database not updating modified data in iphone sdk
(Want more?)