Contents

Develop
2013.04.23 18:08

[ios] 디렉토리 하하하..

조회 수 32653 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

디렉토리 탐색하는 샘플 코드~

NSString *newDir;
if( parent_dir > 0 ){
    newDir = [NSString stringWithFormat:@"NToon/%d", parent_dir];
}else{
    newDir = @"NToon";
}

NSString *newPath = [documentsDirectory stringByAppendingPathComponent:newDir];

if (![fileManager fileExistsAtPath:newPath]) {
    if ([fileManager createDirectoryAtPath:newPath withIntermediateDirectories:YES attributes:nil error:&error]) {
        //NSLog(@"getDBFilePath: %@ created.", newPath);
    } else {
        NSLog(@"getDBFilePath: Failed to create %@ due to %@", newPath, error);
    }
}

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
61 Develop [ios] 비디오,네트워크,소셜로그인 테스트 file hooni 2017.04.04 760
60 Develop [ios] NSString, RegularExpression Find/Replace hooni 2017.04.14 917
59 Develop [ios] Facebook SDK 로그인 설명 file hooni 2017.04.19 1266
58 Develop [ios] 코코아 프로그래밍의 네이밍 룰(명명 규칙) hooni 2017.05.11 1252
57 Develop 리팩토링 계획안 file hooni 2017.05.15 837
56 Develop 사이버보안실무 발표자료 (2017.06.08) file hooni 2017.06.05 1294
55 Develop 캘리포니아 운전면허 족보 file hooni 2017.06.12 844
54 Develop [android] 간단한 SQLIite 예제 hooni 2017.06.14 1428
53 Develop [android] SQLiteOpenHelper를 이용한 DBManager hooni 2017.06.14 2148
52 Develop [coding] Find all anagrams in a string hooni 2017.06.27 1237
51 Develop [coding] 공부해야 하는거 ㅋㅋ secret hooni 2017.06.27 0
50 Develop [android] 안드로이드 앱 문서 샘플 file hooni 2017.07.11 2193
Board Pagination Prev 1 ... 61 62 63 64 65 66 67 68 69 70 71 Next
/ 71