Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Created April 2, 2015 18:38
Show Gist options
  • Select an option

  • Save vikdenic/c3bcfda0e61628b9f8b9 to your computer and use it in GitHub Desktop.

Select an option

Save vikdenic/c3bcfda0e61628b9f8b9 to your computer and use it in GitHub Desktop.
Locate Core Data sqlite
- (NSURL *)applicationDocumentsDirectory {
NSLog(@"%@",[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
// The directory the application uses to store the Core Data store file. This code uses a directory named "yourname.BookClub" in the application's documents directory.
return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment