I have this code who create a new database file:
// Get the documents directory
NSArray *dirPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsDir = dirPaths[0];
// Build the path to the database file
databasePath = [[NSString alloc] initWithString: [docsDir stringByAppendingPathComponent:@"registros.db"]];
NSLog(@"DB Path: %@", databasePath);
This code always create in this directory:
DB Path: /Users/williamlima/Library/Application Support/iPhone Simulator/7.0.3/Applications/0E94A6EA-B72F-4A11-88A9-EC8C1A55BF17/Documents/registros.db
Unfortunately I could not find this file and try to open the file manager. SQL, I would like to at least try to find this file, up or maybe try to modify some command in my code for this file to be created within the folder next to the files. h / .m / .xib, I'm still a beginner in this language, then, is this possible?