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 ArticleAnswer by rounak for Display image size in MB format IOS 7
[NSByteCountFormatter stringFromByteCount:imageSize countStyle:NSByteCountFormatterCountStyleFile];
View ArticleAnswer 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 ArticleDisplay 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
More Pages to Explore .....