把UIImage 转换为NSData,然后拿到NSData的大小

NSData * imageData = UIImageJPEGRepresentation(image,);

length = [imageData length]/;

NSLog(@"image-kb:%d kb,image-M:%d M", length, length/);
05-04 09:39