Fade bottom of UIScrollView to transparent
问题 I have a UIScrollView, and I need the bottom to fade to transparent, so that it does not abruptly cut off the content. The background of the UIScrollView is a custom color. This is what I have so far, but the layer is showing up white, instead of the custom color. This is what I am going for, but only on the bottom. : Here is what I have so far: maskLayer = [CAGradientLayer layer]; CGColorRef firstColor = [UIColor colorWithRed:141 green:211 blue:244 alpha:1.0].CGColor; CGColorRef secondColor