title: Unity Canvas scale issue on iOS
body: <p>I've got a weird issue with Unity, where the height of the screen doesn't match the layout built in the editor, but only on iOS. It does work in the editor, in a Windows standalone and in the Android app, but not on iOS (im testing on an iPhone 5).</p>
  
  <p>So the menu layout can be broken down to just a couple of full width images with different y-positions. These images are set to stretch in height, so no matter how I change the play-preview in the editor, they always fill the screen as intended.</p>
  
  <p>As soon as I test it on the iPhone however, it looks like there was height added to the screen after calculating all the image heights or something. Every image seems to be about 10% too short.</p>
  
  <p>This all did work some weeks ago, when I was on an older iOS version, xcode version and Unity version, but I updated them all in the meantime, so I can't say which one could be the cause for this.</p>
  
  <p>Some weeks ago, the minimum iOS version in Unity was set to 7.0, now it has to be at least 8.0 to not get the "update project settings" warning in xcode.</p>
  
  <p>The roughly 10% could be the iOS status bar, which could be taken into account for the height calculations, but then turned off and the game can span over the whole height.</p>
  
  <p>The iOS "Resolution and Presentation" settings are set to require fullscreen and hide status bar.</p>
  
  <p>Edit:
  Here's what it looks like in the editor and on iOS.
  <a href="https://i.stack.imgur.com/mOMeW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mOMeW.png" alt="Editor"></a>
  The 4 different canvas have just different settings for the canvas scaler. The images in all of them have their RectTransform set to stretch in both directions.
  <a href="https://i.stack.imgur.com/2r0u6l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2r0u6l.jpg" alt="iOS"></a></p>