I'm storing everything in sqlite and add, update and edit them quite often in the app. It all must never be deleted and I wonder if app updates could ever wipe data stored in sqlite.
Edit
-(void)createTables{
FMDatabase *db = [self openDatabase]; if(db == nil) return;
NSError *err;
[db executeUpdate:@"CREATE TABLE IF NOT EXISTS gameTable (idx INTEGER PRIMARY KEY AUTOINCREMENT, item0 TEXT DEFAULT'0', item1 TEXT DEFAULT'0', item2 TEXT DEFAULT'0', item3 TEXT DEFAULT'0', item4 TEXT DEFAULT'0')" withErrorAndBindings:&err];
NSLog(@"err:%@", err);
[db close]; }
Aucun commentaire:
Enregistrer un commentaire