title: Cannot open viewcontroller - ios F# (performSegue and presentviewcontroller)
body: <p>I'm trying to simply present a ViewController, however, this doesn't work using the <code>PerformSegue</code> method or the <code>PresentViewController</code> method, nothing seems to happen. I have verified using the debugger that the correct line of code is reached, I have also verified the names and IDs are correct. </p>
  
  <pre><code>namespace Proj
  
  open System
  
  open Foundation
  open UIKit
  
  [&lt;Register ("FirstPage")&gt;]
  type FirstPage (handle:IntPtr) =
      inherit UIViewController (handle)
  
      override x.DidReceiveMemoryWarning () =
          base.DidReceiveMemoryWarning (
  
      )    
  
      override x.ViewDidLoad () =
          base.ViewDidLoad ()
          let value = NSUserDefaults.StandardUserDefaults.StringForKey("type")
          x.View.BackgroundColor &lt;- UIColor.Blue
          if value &lt;&gt; null then 
              if value = "landlord" then 
                  let Storyboard = UIStoryboard.FromName("Main", null)
                  let viewController = Storyboard.InstantiateViewController("landlord_home") :?&gt; UINavigationController
                  x.PresentViewController(viewController,true,null)
              else 
                  if value = "tenant" then
                      let Storyboard = UIStoryboard.FromName("Main", null)
                      let viewController = Storyboard.InstantiateViewController("tinder_interface") :?&gt; BackgroundAnimationViewController
                      x.PresentViewController(viewController,true,null) 
  
          else 
              x.PerformSegue("goToNameReg",x) 
  
  
  
      override x.ShouldAutorotateToInterfaceOrientation (toInterfaceOrientation) =
          if UIDevice.CurrentDevice.UserInterfaceIdiom = UIUserInterfaceIdiom.Phone then
             toInterfaceOrientation &lt;&gt; UIInterfaceOrientation.PortraitUpsideDown
          else
             true
  </code></pre>