I'm trying to load a nib programmatically without using IBOutlets in storyboard.
I've set the file owner's custom class and created outlets for the images and labels. I've created an instance of UINib and called instantiateWithOwner in my custom class to manually load the nib. Now I'm trying to load the nib on an uitableviewcontroller.
My question is how to load that xib on a view controller without adding a uiview to a view controller using storyboard and without connecting outlets to the uiview.
There are several questions and tutorials for how load the nib using storyboard and IBOutlets, which is straightforward.
Can anyone tell me how to go about this programmatically, in swift?
Note: I have two viewcontrollers in my project. VC1 has a collectionView with an image and a label. I'm using a xib and a custom class to display the selected collectionView in VC2.