Dev/iOS
[objective-c] 아이폰 디렉토리 파일 가져오기
놀란
2011. 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);
}