Created
September 6, 2011 17:54
-
-
Save thekarladam/1198427 to your computer and use it in GitHub Desktop.
GradientView
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface GradientView : UIView | |
@end | |
@implementation GradientView | |
+ (Class)layerClass { | |
return [CAGradientLayer class]; | |
} | |
- (id)initWithFrame:(CGRect)frame { | |
if (self = [super initWithFrame:frame]) { | |
CAGradientLayer *layer = (CAGradientLayer *)self.layer; | |
layer.colors = [NSArray arrayWithObjects: (id)[[UIColor redColor] CGColor], | |
(id)[[UIColor greenColor] CGColor], | |
nil]; | |
} | |
return self; | |
} | |
@end |
Yea, I like real tabs, browser tabs are enormous though so they never line up
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What spacing problem?