반응형
NSFileManager *filemgr;
filemgr = [NSFileManager defaultManager];
NSArray *dirPaths;
NSString *docsDir;
dirPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
docsDir = [dirPaths objectAtIndex:0];
NSLog(@"[%@]", docsDir);
NSString *tempDir;
tempDir = NSTemporaryDirectory();
NSLog(@"[%@]", tempDir);
NSString *dirCache;
dirPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
dirCache = [dirPaths objectAtIndex:0];
NSLog(@"[%@]", dirCache);
'Dev::iOS' 카테고리의 다른 글
특정 위치로 navigation 이동 (0) | 2012.03.09 |
---|---|
Table view -> Next view (0) | 2012.02.28 |
현재 단말기에 세팅되어 있는 언어 가져오기 (0) | 2012.02.07 |
locale (0) | 2012.02.07 |
warning:Local declaration of 'var' hides instance variable (0) | 2012.02.03 |