'App screen size is too small for the ios simulator

Here is a screen shot of an ipad 10.5 inch running my app which takes up around 50% of the screen real estate. How do I force the app to use 100% of the screen real estate? (I am using xcode 10) enter image description here



Solution 1:[1]

You have to specify it in Xcode. If you don't the ipad is getting a scaled up version of ui for iPhone 4. Open Xcode and specify it "General" project settings.

Solution 2:[2]

May be your IOS setting preference is wrong. You are opening your application on ipad but XCode rendering your application as iPhone app.

  • Go to general setting and select "iPad" in Deployment Info section.
  • Go to Build Setting and select "iPad" in Targeted Device Families under Deployment section.
  • Restart your project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Murmeltier
Solution 2 Sarower Jahan