Posted By

zamza726 on 01/25/11


Tagged

filepath NSDocumentDirectory


Versions (?)

Save a file in app.


 / Published in: Objective C
 

  1. NSString * filePath(){
  2. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  3. NSString* dirpath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"XXX"]; //Folder name "XXX"
  4. return dirpath;
  5. }

Report this snippet  

You need to login to post a comment.