NSString *docsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];NSString *filename = [docsPath stringByAppendingPathComponent:@"somewhereInAppSandbox"];
Then you can just use
and
[NSKeyedArchiver archiveRootObject:array toFile:filename];
[NSKeyedUnarchiver unarchiveObjectWithFile:filename];
as I suggested in the other post. Obviously for anything serious you would use CoreData or Sqlite.
No comments:
Post a Comment