Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View outlet was not set? (Xcode)

When trying to run my iPhone app that I am currently building the build succeeds but the application crashes after the start up image and gives me an error that looks like this:

2011-04-06 20:31:38.562 My App[3438:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "GalleryView" nib but the view outlet was not set.'

I cannot figure out whats going on here.. Please help!

like image 573
Dan Avatar asked Apr 07 '11 01:04

Dan


1 Answers

In Interface Builder, with the GalleryView.xib file open, make sure you CTRL+drag from your File's owner to your view and set the file's owner view outlet.

like image 162
Ken Pespisa Avatar answered Oct 14 '22 00:10

Ken Pespisa