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. [c] 가변인자 함수(printf와 같은..)

  2. [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치)

  3. [c] openssl 샘플코드.. 어려움 ㅠㅠ

  4. [c] 바로 보고 정리할 것.. ㅋㄷㅋㄷ

  5. [c] UTF-8을 EUC-KR로 변환.. (iconv)

  6. [c] 도메인(호스트)으로 IP정보 알아오기.. (nslookup과 비슷)

  7. [c] 파이프(popen)로 다른 프로세스 실행결과 가져오기

  8. [c++] Win32 API 기본 출력인 MessageBox() 함수 사용 예제..

  9. [c++] mfc에서 윈도우 항상 위 속성 주기..

  10. [c] 쓰레드에 대한 내용 퍼오기..ㅡㅡ;

  11. [c++] 채팅로봇 소스.. ㅋㄷㅋㄷ

  12. [doc] 인공지능 관련 자료(채팅로봇도 포함..)

Board Pagination Prev 1 ... 41 42 43 44 45 46 47 48 49 50 ... 98 Next
/ 98