Skip to content

Commit

Permalink
Make the app use the new app group directory to save data.
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicbird committed Nov 13, 2014
1 parent 3f05d63 commit 38c3efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DemoNotes/MasterViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ - (void)viewWillAppear:(BOOL)animated

- (NSURL *)demoNoteFileURL
{
NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil];
NSURL *fileURL = [documentsDirectoryURL URLByAppendingPathComponent:kDemoNoteFilename];
NSURL *groupURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.com.atomicbird.demonotes"];
NSURL *fileURL = [groupURL URLByAppendingPathComponent:kDemoNoteFilename];
return fileURL;
}

Expand Down

0 comments on commit 38c3efc

Please sign in to comment.