Resize Image without quality loss.
Resize image without loss in quality. - ( UIImage *) resizeImage :( UIImage *) aImage reSize :( CGSize ) newSize ; { UIGraphicsBeginImageContextWithOptions ( newSize , YES , [ UIScreen mainScreen ]. scale ); [ aImage drawInRect : CGRectMake ( 0 , 0 , newSize . width , newSize . height )]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); return newImage ; }