我需要将NSFileSystemSize改为Giabytes。
NSDictionary * fsAttributes = [ [NSFileManager defaultManager]
fileSystemAttributesAtPath:NSTemporaryDirectory()];
NSNumber *totalSize = [fsAttributes objectForKey:NSFileSystemSize];
NSString *sizeInGB = [NSString stringWithFormat:@"
%3.2f GB",[totalSize floatValue] / 107374824];
//returns 69.86 GB
是否有任何想法,说明它为什么要回到8.GB?