Quantcast
Channel: Display image size in MB format IOS 7 - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Gianni Carlo for Display image size in MB format IOS 7

Complementing @rounak 's answer, in Swift 3:ByteCountFormatter.string(fromByteCount: Int64(imageSize), countStyle: .file)

View Article



Answer by rounak for Display image size in MB format IOS 7

[NSByteCountFormatter stringFromByteCount:imageSize countStyle:NSByteCountFormatterCountStyleFile];

View Article

Answer by Avt for Display image size in MB format IOS 7

imageSize has data length in bytes. You need to convert it to MbNSLog(@"SIZE OF IMAGE: %i Mb", imageSize/1024/1024);UPDATE:You can also use following codeNSLog(@"SIZE OF IMAGE: %.2f Mb",...

View Article

Display image size in MB format IOS 7

I tying to check my image size after picking form the photo library by using this code. NSData *imageData1 = [[NSData alloc] initWithData:UIImageJPEGRepresentation((imageview.image), 0.5)]; int...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images