Created
January 6, 2016 14:16
-
-
Save maximbilan/01d67d8447f98b67c3da 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
override func loadView() { | |
super.loadView() | |
... | |
let nibName = someCondition ? "OneXIB" : "AnotherXIB" | |
let nib = UINib(nibName: 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