Contents

Develop
2013.04.23 18:08

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

Views 32656 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

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

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
No. Category Subject Author Date Views
81 Develop 논문에 들어갈 툴바 테스트 해볼 것.. secret hooni 2013.04.23 8013
80 Develop 다양한 방법으로 아주 큰 수(Big Number) 계산.. ㅋㅋ hooni 2013.04.23 8396
79 Develop 다운 받아서 테스트 해볼것.. hooni 2013.04.23 9164
78 Develop 도메인 관련 솔루션 분석할 거.. ㅋㄷ file hooni 2013.04.23 7050
77 Algorithm 디피헬만(Diffie-Hellman) 초간단 개념.. hooni 2013.04.23 81077
76 System/OS 라우팅 경로 결정 영향 요소 ㅋㅋ file hooni 2013.04.23 15921
75 Develop 라이브러리에 대한 설명 (static & dynamic library) hooni 2013.04.23 6964
74 Algorithm 러시아 페인트공 알고리즘에 대해.. hooni 2013.04.23 22966
73 Develop 레고 NXT 마인드스톰 밸런싱 로봇 ㅎㅎ file hooni 2013.04.23 57759
72 Develop 레고 마인드스톰 NXT 수도쿠, 큐브 소스코드.. 20 file hooni 2013.04.23 81542
71 Develop 리팩토링 계획안 file hooni 2017.05.15 854
70 Develop 링크들 보고 지울 내용 secret hooni 2019.11.21 0
Board Pagination Prev 1 ... 87 88 89 90 91 92 93 94 95 96 ... 98 Next
/ 98