Skip to content

Instantly share code, notes, and snippets.

@MKSG-MugunthKumar
Created January 20, 2013 03:55
Show Gist options
  • Save MKSG-MugunthKumar/4576585 to your computer and use it in GitHub Desktop.
Save MKSG-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