title: Black border all around simulation / viewport in iOS using Xamarin + CocosSharp
body: <p>I'm just getting started with Xamarin and CocosSharp so it's possible I've missed something basic here.. but whatever it is I can't seem to figure it out.</p>
  
  <p>I'm trying to get my app/game to be fullscreen (I would prefer to see the status bar with connection, battery, and time.. but for now I'll settle for just full screen.</p>
  
  <p>I'm editing this line: </p>
  
  <pre><code>CCScene.SetDefaultDesignResolution(1080, 1920, CCSceneResolutionPolicy.ShowAll);
  </code></pre>
  
  <p>And I've tried a bunch of different resolutions, but no matter what I do I can't get it to use the entire screen. As you can see in the image below, even if I enter a very large value for the height, it still does not use up all the free space.</p>
  
  <p>How do I make it so the game uses the entire screen, and if possible shows the status bar?</p>
  
  <p>If it makes any difference the program is set to portrait only.</p>
  
  <p><a href="https://i.stack.imgur.com/AcxLB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AcxLB.png" alt="enter image description here"></a></p>
  
  <p>This is the entire code where I try to set the resolution &amp; aspect ratio.</p>
  
  <pre><code>application.ContentRootDirectory = "Content";
  var windowSize = mainWindow.WindowSizeInPixels;
  
  CCScene.SetDefaultDesignResolution(1080, 1000, CCSceneResolutionPolicy.ShowAll);
  application.ContentSearchPaths.Add("hd");
  CCSprite.DefaultTexelToContentSizeRatio = 2.0f;
  
  var scene = new CCScene(mainWindow);
  var introLayer = new IntroLayer();
  scene.AddChild(introLayer);
  
  mainWindow.RunWithScene(scene);
  </code></pre>
  
  <p><strong>Update 1:</strong>
  Changed the code to use <code>.ExactFit</code>, did not make much of a difference.</p>
  
  <p>Tried these two lines, the result is the image below. Not the difference in the text, there are more pixels in the right one, but they are compressed.. and still the black border.</p>
  
  <pre><code>CCScene.SetDefaultDesignResolution(1080, 1920, CCSceneResolutionPolicy.ExactFit);
  CCScene.SetDefaultDesignResolution(1080, 2500, CCSceneResolutionPolicy.ExactFit);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/wPpj9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wPpj9.png" alt="enter image description here"></a></p>