Contents

Develop
2013.04.23 18:08

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

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

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
453 Develop [c] 단기과정[01/08] 과제.. 파스칼 삼각형 file hooni 2003.04.23 7276
452 Develop [c] 패킷정보출력(경로, 패킷길이, 3hand, sync, ack..) file hooni 2003.04.23 7274
451 Develop [php] 논문 관리 프로그램.. ㅋㅋ file hooni 2013.04.23 7267
450 Develop [c++] mfc로 만든 인테리어 수납 시스템(2D기반 설계) file hooni 2013.04.23 7266
449 Develop [linux] crond 사용법.. ㅋㅋ hooni 2013.04.23 7264
448 Develop [c] 단기과정[01/15] 피보나치, 파스칼.. 링크리스트 file hooni 2003.04.23 7255
447 Develop [c] 단기과정[01/08] 배열, 포인터 hooni 2003.04.23 7253
446 Develop [php] 웹 터미널 & 업로드 소스.. file hooni 2013.04.23 7248
445 Develop [c] 심심해서.. fseek() 예제.. file hooni 2003.04.23 7247
444 Develop [c] 단기과정[01/17] 후위연산 스택 계산기.. file hooni 2003.04.23 7244
443 Develop [html] 메타태그 사용예.. 은지나 바라~ hooni 2003.04.23 7243
442 Develop [jsp] 초간단한 include 구문 예제.. file hooni 2013.04.23 7236
Board Pagination Prev 1 ... 56 57 58 59 60 61 62 63 64 65 ... 98 Next
/ 98