Created
January 6, 2016 14:12
-
-
Save maximbilan/3f2b06ab56f24bcb0c98 to your computer and use it in GitHub Desktop.
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
- (void)loadView | |
{ | |
[super loadView]; | |
... | |
NSString *nibName = someCondition ? @"OneXIB" : @"AnotherXIB"; | |
UINib *nib = [UINib nibWithNibName:nibName bundle:nil]; | |
[nib instantiateWithOwner:self options:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment