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. [mysql] mysql user 생성시 ERROR 1364

  2. 맥에서 파일공유 (윈도우,맥)

  3. [js]모바일 웹에서 orientationchange

  4. [android] keytool을 사용하여 키스토어 생성

  5. [js] 모바일웹에서 이미지 저장하는거 (context menu) 막기

  6. [js] JSON 컨트롤.. 재귀호출로 값 출력하기

  7. [iphone] 파일 업로드 샘플 코드 ㅎㅎ

  8. [node.js] 지금 하고 있는거..

  9. [node.js] nodejs 기본 설치

  10. [iphone] 화면 전환 Portrait & Landscape Mode

  11. [iphone] performSelector:withObject:afterDelay: 에 대한 내용

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

Board Pagination Prev 1 ... 32 33 34 35 36 37 38 39 40 41 ... 98 Next
/ 98