Contents

Develop
2013.04.23 18:08

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

조회 수 32630 댓글 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. 베지어 곡선(Bézier curve) 알고리즘(spline 곡선)

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

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

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

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

  8. [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd

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

  10. Mac OS X - Apache+PHP+MySQL 환경 서버

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

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

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