Skip to content

Instantly share code, notes, and snippets.

@mutekinootoko
Created July 2, 2016 10:51
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 mutekinootoko/3f5767cc2c5f258ee44f16121e077e1d to your computer and use it in GitHub Desktop.
Save mutekinootoko/3f5767cc2c5f258ee44f16121e077e1d to your computer and use it in GitHub Desktop.
create a custom uiview from a xib
UINib *nib = [UINib nibWithNibName:@"YourCustomView" bundle:nil];
YourCustomView *view = [[nib instantiateWithOwner:self options:nil] objectAtIndex:0];
[superview addSubview:view];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment