I had a MyViewController.swift
and a MyViewController.xib
presenting the layout of MyViewController.
I tried different methods to load this
The problem is not with the methods...you have probably kept an outlet(XXX) connected for some uielement and have removed it from corresponding controller...I am adding example below...
the above button is connected to controller now but when i comment outlet
my app crashes
so try to find outlet(xxx) that is missing from viewcontroller but is in xib file.Hope it helps :)