이 오류는 대상 작동 시스템에서 지원하지 않는 NSByteCountFormatter와 관련 될 수 있음을 읽었습니다.NSByteCountFormatter 표시 안 함 @interface
이 클래스는 10.8 (Mountain Lion) 버전에서 지원됩니다. 그래서 "Deploy Target"프로젝트를 10.6에서 10.8로 변경했지만이 오류가 발생했습니다.
make clean, reboot, nothing .. 시도했습니다. 내가 뭔가를 잃어 버렸나요?
NSByteCountFormatter *sizeFormatter = [[NSByteCountFormatter alloc] init];
[sizeFormatter includesUnit:NO];
//fileSizeMb is a NSString
fileSizeMb = [sizeFormatter stringFromByteCount:[fileSize longLongValue] countStyle:NSByteCountFormatterCountStyleFile];
오류 : 'NSByteCountFormatter'에 대한 @interface가 선택 'stringFromByteCount : countStyle :'선언하지
어떤 생각을?
에 코드를 변경; fileSizeMb = [[attribs objectForKey : @ "NSFileSize"] doubleValue]/1000/1000; ' 어쨌든 해결책 주셔서 감사합니다. – Benz