I have made a UIViewController subclass without a .xib file, thinking I would not need it. Now I realize that it would be very useful, but I am unsure of how to add a .xib file to it. Could anybody help?
I have made a UIViewController subclass without a .xib file, thinking I would not
Share
Create a .xib file, then go into interface builder, and then into the ‘Identity Inspector’ panel; there you will find a field called “class” under Custom Class header, select the class that you want to be added to your .xib file from the dropdown. (Make sure you select the File’s Owner in the little sidebar of the xib display area).