diff options
Diffstat (limited to 'Classes/PicCastAppDelegate.m')
-rw-r--r-- | Classes/PicCastAppDelegate.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Classes/PicCastAppDelegate.m b/Classes/PicCastAppDelegate.m index f44c6eb..9e3b744 100644 --- a/Classes/PicCastAppDelegate.m +++ b/Classes/PicCastAppDelegate.m @@ -146,8 +146,8 @@ NSString *databasePath = [documentsDir stringByAppendingPathComponent:databaseName]; NSFileManager *fileManager = [NSFileManager defaultManager]; - - if(![fileManager fileExistsAtPath:databasePath]) { + // change this when you are ready to test persistence + if(true || ![fileManager fileExistsAtPath:databasePath]) { NSString *databasePathFromApp = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:databaseName]; [fileManager copyItemAtPath:databasePathFromApp toPath:databasePath error:nil]; } |