Applying gradient to UIImage - how to remove color invertion?
问题 I'm applying gradient to UIImage , all i want it to be dark on the bottom and slowly turn to clear or light gray in the middle. It is mostly ok, but i have a problem that my image colors invert in some places under this gradient. This looks very annoying. How do i resolve that? Here is my method for your convenience. I have tried picking different blending modes, but it doesn't help. Another question, is how do I make black more intensive in the bottom? This method will work without any extra