Created
April 8, 2011 17:18
-
-
Save tjw/910308 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
static id _commonInit(MyView *self) | |
{ | |
// common init stuff like so... | |
self.opaque = YES; | |
self->_scale = 1.0; | |
return self; | |
} | |
- initWithFrame:(CGRect)frame; | |
{ | |
if (!(self = [super initWithFrame:frame])) | |
return nil; | |
return _commonInit(self); | |
} | |
- initWithCoder:(NSCoder *)coder; | |
{ | |
if (!(self = [super initWithCoder:coder])) | |
return nil; | |
return _commonInit(self); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment