I am working with a menu and I need to create images which will fit in the 'cell'. Whenever I scale my image, it looks horrible!
Code:
CGSize newSize = CGSizeMake(22, 22); //whaterver size
UIGraphicsBeginImageContext(newSize);
[cimg drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();