Contents

Develop
2013.04.23 18:08

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

조회 수 33514 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
457 Develop [ios] iOS In App Purchase 코드 부분 샘플 2 hooni 2013.11.20 12145
456 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 12160
455 Develop [자료구조] 트리(tree) 용어정리 file hooni 2003.04.23 12175
454 System/OS Configure Postfix to Use Gmail SMTP on Ubuntu 18.04 file hooni 2020.02.07 12207
453 System/OS [linux] 시스템 데몬 종류와 설명 hooni 2013.04.23 12228
452 Develop [c] 최대공약수, 최소공배수, 서로소 구하기 (펌) hooni 2013.04.23 12271
451 Develop [switch] 시스코 스위치(catalyst 2950) telnet 설정 hooni 2013.04.23 12282
450 Develop [c] 최단거리 알고리즘 & 예제소스.. 13 file hooni 2013.04.23 12298
449 Develop [js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript) hooni 2013.04.23 12298
448 Develop [c++] 기초강좌 #01(입출력,영역지정) hooni 2003.04.23 12312
447 System/OS [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) file hooni 2017.12.11 12348
446 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 12360
Board Pagination Prev 1 ... 56 57 58 59 60 61 62 63 64 65 ... 99 Next
/ 99