Skip to content

Instantly share code, notes, and snippets.

@MugunthKumar
Created January 20, 2013 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MugunthKumar/4576585 to your computer and use it in GitHub Desktop.
Save MugunthKumar/4576585 to your computer and use it in GitHub Desktop.
Initializing a custom control.
-(void) baseInit_ {
<#Your code here#>
}
-(id) initWithCoder:(NSCoder *)aDecoder {
if(self = [super initWithCoder:aDecoder]) {
[self baseInit_];
}
return self;
}
-(id) initWithFrame:(CGRect)frame {
if(self = [super initWithFrame:frame]) {
[self baseInit_];
}
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment