iPad屏幕不支持自动布局 [英] iPad screen doesn't support autolayout

查看:114
本文介绍了iPad屏幕不支持自动布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用自动布局创建视图,该视图在所有iPhone设备上均能正常工作,但在iPad的左侧,右侧,顶部和底部留有一些空白.
我尝试专门为768制造一个专门用于iPad的xib * 1024,但仍然面临相同的问题. 这是iPad输出的屏幕截图.

I have created view using autolayout it works fine in all iPhone devices but it left some blank space at left, right, top and bottom on iPad.
I tried to make another xib specially for iPad which is 768*1024 but still facing same problem. here is the screenshot of iPad output.

推荐答案

问题是您忘记了将其设为通用应用.因此,它以简化模式在iPad上作为iPhone应用程序运行在缩小的框架中.

The problem is that you forgot to make this a universal app. So it is running on the iPad in emulation mode as an iPhone app in a reduced frame.

这篇关于iPad屏幕不支持自动布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆