2012-10-10 36 views

回答

0

只需使用的NSFileManager:

NSFileManager *fm = [[NSFileManager alloc] init]; 
NSDictionary *attrs = [fm attributesOfItemAtPath:recordedFile.path error: NULL]; 
NSLog(@"File size: %@", [NSString stringWithFormat:@"%lld", [attrs fileSize]]);