Need help with a warning:

Discussion in 'iOS Programming' started by guydor, Jun 4, 2010.

  1. guydor macrumors member

    Mar 10, 2009

    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?

  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    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.
  3. guydor thread starter macrumors member

    Mar 10, 2009
    Thank you so much!!!!


Share This Page