We downloaded the nib file, but the viewpoint was not installed

I accidentally deleted universityPicker.xib and then created a new one with the same name, but the connection could not be completed. The file crashes and gives this message

reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "universityPicker" nib but the view outlet was not set." 

How can i fix this?

+4
source share
2 answers
  • Open universityPicker.XIB
    • Click the file owner icon in the left pane.
    • Click on the third tab in the right sidebar.
    • In the "Custom Class" section at the top, make sure that Class is the name of the ViewController that should match this view. If not, enter it
    • In the right sidebar, click the last tab
    • You should see the "exits" labeled "view". Drag the circle next to it on the view icon in the left pane.
    • Save xib and restart
+21
source

In the Builder interface, you must connect the view to the file owner.

0
source

All Articles