如何检测iPhone/iPad设备上的总可用/空闲磁盘空间?
-(unsigned)getFreeDiskspacePrivate {NSDictionary *atDict = [[NSFileManager defaultManager] attributesOfFileSystemForPath:@"/" error:NULL];unsigned freeSpace = [[atDict objectForKey:NSFileSystemFreeSize] unsignedIntValue];NSLog(@"%s - Free Diskspace: %u bytes - %u MiB", __PRETTY_FUNCTION__, freeSpace, (freeSpace/1024)/1024);return freeSpace;}