Skip to content

Instantly share code, notes, and snippets.

@maximbilan
Created January 6, 2016 14:16
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 maximbilan/01d67d8447f98b67c3da to your computer and use it in GitHub Desktop.
Save maximbilan/01d67d8447f98b67c3da to your computer and use it in GitHub Desktop.
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