On Feb 11, 2010, at 4:54 PM, PCWiz wrote:
> The gradient works fine. Now this view has a subview (custom UIView subclass,
> added in Interface Builder) that draws a line. The problem is that the
> CAGradientLayer goes OVER the subview of the main view. If I comment out the
> code that creates t
In my UIViewController I create a CAGradientLayer in the viewDidLoad method:
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = CGRectMake(self.view.bounds.origin.x,
self.view.bounds.origin.y + 44.0, self.view.bounds.size.width,
self.view.bounds.size.height - 44.0);