Contents

Develop
2013.04.23 18:08

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

조회 수 32628 댓글 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. [lego] 세그웨이 이것만 볼것.. ㅎㅎ

  2. [c] C로 구현한 CGI - 방명록

  3. [js] jQuery 코드 작성시 편리한 HTML 템플릿

  4. [c++] 웹폼(webform)전송과 http 파일 업로드 샘플

  5. 베지어 곡선(Bézier curve) 알고리즘(spline 곡선)

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

  7. [js] 키보드 아스키코드(ASCII) 코드보기

  8. [c] C로 구현한 CGI - 달력과 날짜계산기

  9. [ios] 개발 기초 가이드 링크..

  10. [js] jQuery 관련 문서 ㅎㅎ

  11. [android] 디바이스(시뮬레이터) hosts 파일 수정하기

  12. 서기의 PHP 동영상 강의(싱싱해)

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 71 Next
/ 71