Search code examples
iosxcodexcode-storyboard

iPhone 6s Plus size screen getting cut off on iPhone 6 Plus


I have a storyboard I am building for an iPhone 6 Plus and iPhone 6s application. For some reason, when I run the application on the iPhone 6 Plus the screen is cut off but on the 6s Plus everything fits on the screen. Is the screen size different? Also, is there a way to find out what if the user is using an iPhone 6s or 6 Plus?


Solution

  • You may want to use Auto Layout

    https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/

    Debug your screen with

    po [[UIWindow keyWindow] _autolayoutTrace]
    

    Check if user is using an iPhone 6 or 6 Plus

    iOS How to detect iPhone 6 plus, iPhone 6, iPhone 5 by macro?