Retrieve Path

Retrieve the path to the Documents directoru:

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

why the index is 0? Only one directory meets the criteria.

 

Getting the tmp Directory.

NSString *tmp = NSTemporaryDirectory();

NSString *tmpFile = [tmp stringByApendingPathComponent:@"tempFile.txt"];

 

posted on 2013-03-12 02:02  fishyk  阅读(184)  评论(0)    收藏  举报

导航