title: Xamarin for iOS: All Controls null in initial view controller
body: <p>I am developing a Storyboard application for iPhone with Xamarin.iOS.
  My App Delegate - finished Launching code looks as follows:</p>
  
  <pre><code>public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
  {
      //Create our window
      Window = new UIWindow(UIScreen.MainScreen.Bounds) { TintColor = UIColor.White };
  
      //Register some services
      ServiceStorage.Register(() =&gt; Window);
      //Apply our UI theme
      Theme.Apply();
  
      //Load our storyboard and setup our UIWindow and first view controller
      storyboard = UIStoryboard.FromName("MainStoryboard", null);
      loginController = storyboard.InstantiateInitialViewController() as LoginViewController;
      Window.RootViewController = loginController;
      Window.MakeKeyAndVisible();
  
      return true;
  }
  </code></pre>
  
  <p>So nothing very exciting here.
  I have a storyboard with my LoginViewController set as initial view controller.</p>
  
  <p>So here is my problem: At first, for some reason, the override ViewDidLoad() method of my LoginViewController is being called 3 times. Second, all controls - I have text boxes and buttons, all designed from the storyboard designer and accessible via outlets - are Null during this ViewDidLoad method, so any time I want to set a text / image / ..., it raises an error.</p>
  
  <p>Has anyone had such an error before? I have tried using a different view controller class and a different AppDelegate but nothing seems to work..</p>
  
  <p>Your help would be greatly appreciated!</p>
  
  <p>Thanks,
  Leonard</p>