Contents

Develop
2013.04.23 18:08

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

조회 수 32633 댓글 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);
    }
}

?

  1. [html] HTML5 튜토리얼 링크 ㅋㅋ

  2. [linux] 콘솔 기본언어 설정 방법

  3. [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문)

  4. [linux] ProFTPD 타임아웃 설정

  5. [doc] UI개발시 유용한 소프트웨어 (개발 및 디버깅 툴)

  6. [c] 다중연결 서버 만들기 #1 - fork() 사용

  7. [router] 시스코 라우터 명령어 모드..

  8. [linux] 아파치 설치/설정(proxy)

  9. [js] 자바스크립트의 클로저 (JavaScript's Closure)

  10. [php] 심플한 게시판 ㅋㅋ

  11. [js] AngularJS를 소개합니다.

  12. [linux] ipfwadm를 이용한 패킷필터링(구버전)

Board Pagination Prev 1 ... 64 65 66 67 68 69 70 71 72 73 ... 98 Next
/ 98