SQLite on iOS database issues
Posted: Sun Apr 03, 2011 3:26 am
I'm trying to save data to an SQLite database on one card, then on another card retrieve this information and display it in reverse entry order.
Everything is working great on the desktop, but on iOS I get one of two problems:
1) If I attempt to create the database in the specialfolderpath("documents") directory on first run the app cannot find the database.
2) If I attempt to load a database that has been copied into the app at build I get an error for trying to write to a read only database.
If someone could take a look and suggest a solution... I'm sorry my code has so many commented out portions, but I'm pretty new to this and I've been trying different things all evening.
Really frustrating that this works on desktop perfectly then bugs as soon as it hits the simulator or an iphone.
Thanks.
Everything is working great on the desktop, but on iOS I get one of two problems:
1) If I attempt to create the database in the specialfolderpath("documents") directory on first run the app cannot find the database.
2) If I attempt to load a database that has been copied into the app at build I get an error for trying to write to a read only database.
If someone could take a look and suggest a solution... I'm sorry my code has so many commented out portions, but I'm pretty new to this and I've been trying different things all evening.
Really frustrating that this works on desktop perfectly then bugs as soon as it hits the simulator or an iphone.
Thanks.