title: fatal error: unexpectedly found nil while unwrapping an Optional value (EXC_BAD_INSTRUCTION)
body: <p>I have found many similar questions but none have helped. When I present a View Controller named <code>TestVCViewController</code> and do something with a <code>IBOutlet</code> <code>UILabel</code> declared here I get this error.</p>
  
  <p>I have checked the <code>IBOutlet</code> connection and it is connected.</p>
  
  <p>If I simply present the VC (i.e. <code>IBOutlet</code> is declared and connected but is not being used), there is no error, however, the view hasn't been loaded as it appears black whereas actually it has a white background.</p>
  
  <p>I checked this answer <a href="https://stackoverflow.com/a/27219058/2500457">https://stackoverflow.com/a/27219058/2500457</a> and gave the <code>UILabel</code> autolayout constraints for all size classes but it didn't help.</p>
  
  <p><em>FirstVC.swift</em>:</p>
  
  <pre><code>var nextVC:TestVCViewController
  required init(coder aDecoder: NSCoder) {
      nextVC = TestVCViewController()
      super.init(coder: aDecoder)
  }
  </code></pre>
  
  <p>button action:</p>
  
  <pre><code>self.nextVC =  TestVCViewController()
  self.presentViewController(self.nextVC, animated: true, completion: nil)
  </code></pre>
  
  <p><em>TestVCViewController.swift:</em></p>
  
  <pre><code>class TestVCViewController: UIViewController {
  
  @IBOutlet  var screwManLABEL: UILabel!
  override func viewDidLoad() {
      super.viewDidLoad()
      screwManLABEL.text = "heyyyy"
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
  }
  }
  </code></pre>
  
  <p>I get exception at <code>screwManLABEL.text = "heyyyy"</code> and the debugger shows the </p>
  
  <blockquote>
    <p>fatal error: unexpectedly found nil....</p>
  </blockquote>