把UIImage 转换为NSData,然后拿到NSData的大小NSData * imageData = UIImageJPEGRepresentation(image,); length = [imageData length]/; NSLog(@"image-kb:%d kb,image-M:%d M", length, length/);