简体   繁体   English

构建ios应用程序,以便ipad使用iphone屏幕大小

[英]build ios app so ipad uses iphone screen size

I have inherrtied an IOS project that was being built primarly for iphone. 我已经继承了一个主要为iphone构建的IOS项目。 When I run the app on an ipad, the app runs in the top left corner of the screen and everything looks a bit broken. 当我在ipad上运行应用程序时,应用程序在屏幕的左上角运行,一切看起来都有点破碎。 I noticed some apps run in a small iphone screen on the ipad with the option to zoom in. How do I get my app to do this? 我注意到一些应用程序在ipad上的小型iphone屏幕上运行,并且可以放大。我如何让我的应用程序执行此操作?

Go to the project settings and select your target. 转到项目设置并选择目标。 Under the "Summary" tab, choose "iPhone" from the "Devices" dropdown: 在“摘要”标签下,从“设备”下拉列表中选择“iPhone”:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM