Need help with a warning:

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

  1. guydor macrumors member

    Joined:
    Mar 10, 2009
    #1
    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!
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    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

    Joined:
    Mar 10, 2009
    #3
    Thank you so much!!!!

    :D:D:D:D:D
     

Share This Page