2011年3月13日 星期日

取得Documents Folder

1.

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

NSString * DOCUMENTS_FOLDER = [paths objectAtIndex:0];

2

#define DOCUMENTS_FOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]

3

path = [DOCUMENTS_FOLDER stringByAppendingPathComponent:selectedFileNameObject];;

沒有留言:

張貼留言