Created
June 28, 2010 10:16
-
-
Save dlinsin/455669 to your computer and use it in GitHub Desktop.
This file contains 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
- (id)initWithParent:(UIView *)parent { | |
self = [self initWithFrame:CGRectZero]; | |
if (!self) | |
return nil; | |
[parent addSubview:self]; | |
return self; | |
} | |
+ (id) viewWithParent:(UIView *)parent { | |
return [[[self alloc] initWithParent:parent] autorelease]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment