Created
July 2, 2016 10:51
-
-
Save mutekinootoko/3f5767cc2c5f258ee44f16121e077e1d to your computer and use it in GitHub Desktop.
create a custom uiview from a xib
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
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