Reputation: 1066
I'm new to swift auto layout. I try to create a story board with simple view in it as below:
When I run this on ipad simulator, it display as below:
And when I run it on actual ipad (Air 2) it shown as below:
Is the top part of the display missing due to "1X" icon located on bottom right corner? how do I get rid of it?
Thanks
Upvotes: 0
Views: 419
Reputation: 11
You might have to change the your project settings to "Universal". Go to your Project and click the Target. Then, under General->Deployment Info, change the Devices from "iPhone" to "Universal"
Upvotes: 1
Reputation: 20379
Is the top part of the display missing due to "1X" icon located on bottom right corner?
Nope :) 1x is appearing because you are running a iphone app on ipad simulator :) Check the application to universal app :) and 1x will be removed automatically and your view should be rendered fine :)
Upvotes: 2