Skip to content
Browse files

- now with -drawRect:

  • Loading branch information...
1 parent d4e9377 commit 05f282b278607f2ca19de6eb0b46607e29d8b98b @thekarladam committed Sep 6, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 GradientLayer/GradientView.m
View
4 GradientLayer/GradientView.m
@@ -20,8 +20,12 @@ - (id)initWithFrame:(CGRect)frame {
layer.colors = [NSArray arrayWithObjects: (id)[[UIColor redColor] CGColor],
(id)[[UIColor greenColor] CGColor],
nil];
+ self.opaque = NO;
}
return self;
}
+- (void)drawRect:(CGRect)rect {
+}
+
@end

0 comments on commit 05f282b

Please sign in to comment.
Something went wrong with that request. Please try again.