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] 세그웨이 이것만 볼것.. ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views33534
    Read More
  2. [c] C로 구현한 CGI - 방명록

    Date2003.04.23 CategoryDevelop Byhooni Views33427
    Read More
  3. [js] jQuery 코드 작성시 편리한 HTML 템플릿

    Date2013.12.17 CategoryDevelop Byhooni Views33067
    Read More
  4. [c++] 웹폼(webform)전송과 http 파일 업로드 샘플

    Date2013.04.23 CategoryDevelop Byhooni Views33059
    Read More
  5. 베지어 곡선(Bézier curve) 알고리즘(spline 곡선)

    Date2013.04.23 CategoryDevelop Byhooni Views32841
    Read More
  6. [ios] 디렉토리 하하하..

    Date2013.04.23 CategoryDevelop Byhooni Views32628
    Read More
  7. [js] 키보드 아스키코드(ASCII) 코드보기

    Date2003.04.23 CategoryDevelop Byhooni Views32476
    Read More
  8. [c] C로 구현한 CGI - 달력과 날짜계산기

    Date2003.04.23 CategoryDevelop Byhooni Views32269
    Read More
  9. [ios] 개발 기초 가이드 링크..

    Date2013.04.23 CategoryDevelop Byhooni Views31364
    Read More
  10. [js] jQuery 관련 문서 ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views31219
    Read More
  11. [android] 디바이스(시뮬레이터) hosts 파일 수정하기

    Date2013.04.23 CategoryDevelop Byhooni Views31064
    Read More
  12. 서기의 PHP 동영상 강의(싱싱해)

    Date2013.05.15 CategoryDevelop Byhooni Views30977
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 71 Next
/ 71