Skip to content

Instantly share code, notes, and snippets.

@motoishmz
Last active December 17, 2015 22:39
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 motoishmz/5683874 to your computer and use it in GitHub Desktop.
Save motoishmz/5683874 to your computer and use it in GitHub Desktop.
@implementation MyView
- (id)init
{
self = [super init];
if (self)
{
UINib *nib = [UINib nibWithNibName:@"SettingView" bundle:nil];
UIView *settingView = [[nib instantiateWithOwner:self options:nil] objectAtIndex:0];
[self addSubview:settingView];
}
return self;
}
- (void)awakeFromNib
{
[super awakeFromNib];
testLabel.text =@"asdadas";
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment