How to create new image just with gradient colors, using \"from-color\" and \"to-color\"?
You can use https://github.com/leszek-s/LSCategories It allows creating image with gradient like this:
UIImage *gradient = [UIImage lsGradientImageWithSize:CGSizeMake(100, 100) startColor:[UIColor redColor] endColor:[UIColor greenColor] startPoint:CGPointMake(0.0, 0.0) endPoint:CGPointMake(0.0, 1.0)];