Take the 2-minute tour ×  I've got a UITextView, with scrollable
text. I'm trying to apply a gradient layer to it, so the bottom
of the visible text is always slightly faded out.  Here's my
code:  CAGradientLayer *maskLayer = [CAGradientLayer layer];
maskLayer.colors = [NSArray arrayWithObjects:(id)[[UIColor
clearColor] CGColor], (id)[[UIColor yellowColor] CGColor], nil];
maskLayer.locations = [NSArray arrayWithObjects:[NSNumber
numberWithFloat:0.0],                        [NSNumber
numberWithFloat:0.2],                        [NSNumber
numberWithFloat:0.8],                        [NSNumber
numberWithFloat:1.0], nil]; maskLayer.bounds =
clueTextView.bounds; myUITextView.layer.mask = maskLayer;  Right
now, this is causing the UITextViewLayer to be completely
transparant - I see the background color of the UIView that the
UITextViewLayer is as subview of. I can't see any of the text
contained within, although I can select and copy the text to
paste in to the notes program.  Any ideas what I'm missing?
share|i