I have the follwoing code to save the image but it seems poor in quality…
is there any way to get the images in a fine quality?
Thanks for any help
UIGraphicsBeginImageContext(CGSizeMake(self.view.bounds.size.width,
self.view.bounds.size.height-50));
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextTranslateCTM(context, 0, -50);
[self.view.layer renderInContext:context];
UIImage* viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext( );
NSData* imageData = [NSData dataWithData:UIImageJPEGRepresentation( viewImage,0 )];
First thing that comes to mind is a compression quality parameter in
UIImageJPEGRepresentationfunction – you set it to the lowest quality (0.0), try to set it to maximum quality value: