Develop
2013.04.23 18:08
[ios] 디렉토리 하하하..
조회 수 32633 댓글 0
디렉토리 탐색하는 샘플 코드~
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); } }
-
[c] 64bit 머신에서 inet_ntoa() 사용시 Segment fault 대처 방법법
-
[ios] NSString 간단한 정규식 사용법
-
[ios] iOS 6.0 이상 회전 하기 (이전 버전과 비교 변경 부분)
-
[ios] 네트워크 인디케이터(NetworkActivityIndicator) 작동
-
[js] 주소표시줄 URL 읽어오기 (변경까지)
-
[linux] CentOS 6.x Cati 설치 (yum)
-
[ios] UIWebView에서 NSURLRequest에 Cookie 실어 보내기
-
[ios] UIWebView 쿠키 유지
-
[php] substr() 한글 자를 때 깨짐 방지
-
[linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기
-
[ios] UIButton multi-line iOS7
-
iOS 에서 쓸만한 오프라인 구글지도 찾기