How to make a original image alpha gradient?
I am using coverflow and I want to make the image's shadow in the coverflow gradiently alpha. For example, the alpha at the top of the image would be 0.5, and at the bottom of image it would be开发者_如何学C 1. I can not use gradient background view.
Use CAGradientLayer for that purpose. Example
精彩评论