Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

guydor

macrumors member
Original poster
Hi,

I'm trying to build my app into the simulator and I get this warning:

The 'view' outlet of 'File's Owner' is connected to 'View' but 'view' is no longer defined on MainViewController

How do I fix it?


Thanks!
 
I assume that MainViewController is a subclass of UIViewController so it has to have the view property. Verify that the header file for your view controller is correct.

Reconnect the view outlet in the nib. I assume you have the Class of your File's Owner set to MainViewController.

I came across this yesterday. I had changed the Class of the UIView that was set as File's Owner's view property and got this warning. Simply setting the view outlet again fixed it.
 
Thank you so much!!!!

I assume that MainViewController is a subclass of UIViewController so it has to have the view property. Verify that the header file for your view controller is correct.

Reconnect the view outlet in the nib. I assume you have the Class of your File's Owner set to MainViewController.

I came across this yesterday. I had changed the Class of the UIView that was set as File's Owner's view property and got this warning. Simply setting the view outlet again fixed it.

😀😀😀😀😀
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.