Guest User

Untitled

a guest
Jul 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. - (NSString *)applicationDocumentsDirectory {
  2. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
  3. NSUserDomainMask,
  4. YES);
  5. NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
  6. return basePath;
  7. }
  8.  
  9. // elsewhere, like in -application:didFinishLaunching:withOptions:
  10. NSLog(@"app doc directory: %@", [self applicationDocumentsDirectory]);
Add Comment
Please, Sign In to add comment