someone_ smiley
someone_ smiley

Reputation: 1066

Xcode : Why same storyboard design display differently on simulator and device?

I'm new to swift auto layout. I try to create a story board with simple view in it as below:

My StoryBoard

When I run this on ipad simulator, it display as below:

Simulator's display

And when I run it on actual ipad (Air 2) it shown as below:

enter image description here 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

Answers (2)

Karlo P
Karlo P

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

Sandeep Bhandari
Sandeep Bhandari

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

Related Questions