Rob
Thanks for your help. I was changing the values of display.contentWidth and display.contentHeight (albeit after I printed the values above to console), and that was messing up the display.
I have now removed the offending lines, and the device is outputting sensible numbers again (very close to simulator, through not quite the same eg. 750 x 1331 on device).
Thanks also for reminding me to add the LaunchScreen.nib to get iPhone6 mode working. I’d done this with another app, just forgot with this app.
For other readers, this involves:
- Creating a LaunchScreen.xib in Xcode interface builder
2. Copying the output LaunchScreen.nib into your project root
-
Copying the png that you used in interface builder to your project root, and
-
In build.settings, add this to iphone.plist:
UILaunchStoryboardName = “LaunchScreen”
Then you will get ‘optimised for iPhone6 and 6Plus’ in your store listing.
Mat