'bundlepath'에 해당되는 글 1건

  1. 2011.07.11 [objective-c] 아이폰 디렉토리 파일 가져오기
Dev/iOS2011. 7. 11. 15:01

기본 번들 디렉토리 가져오기

NSString *bundlePath = [[NSBundle mainBundle] bundlePath];

디렉토리내 파일리스트 가져오기

NSArray *arrContents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:bundlePath error:nil];

for (NSString *strFileName in arrContents) {

NSLog(@"filename--> %@", strFileName);

}


Posted by 놀란