// 獲取文件的大小get
- (CGFloat) getFileSize:(NSString *)path{it
NSFileManager *fileManager = [[NSFileManager alloc] init] ;io
float filesize = -1.0;object
if ([fileManager fileExistsAtPath:path]) {file
NSDictionary *fileDic = [fileManager attributesOfItemAtPath:path error:nil];//獲取文件的屬性float
unsigned long long size = [[fileDic objectForKey:NSFileSize] longLongValue];error
filesize = 1.0*size/1024;文件
}path
return filesize;return
}