问题设计为iPad和放大器的布局;苹果手机? [英] Issue in designing layout for iPad & iPhone?

查看:231
本文介绍了问题设计为iPad和放大器的布局;苹果手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发出应该同时支持iPhone和放大器的应用; iPad兼容。我一直在使用xocde 6自动布局设计的屏幕。但问题是,我的应用程序的屏幕看起来不错,为iPhone而不是为iPad。我已经通过此链接

I have developed an app which should support both iPhone & iPad. I have designed screens using xocde 6 with autolayout. But the issue is, screens of my app looks good for iPhone but not for iPad. I have gone through This Link

它说,我们应该使用大小类为iPad和放大器;设计我们为iPad用户界面。所以,我应该使用不同的尺寸级别为iPad?这样做,我将不得不再次设计为iPad的用户界面。因此,它是使用auotlayout屏幕设计的最佳方式?

It says we should use size class for iPad & design our UI for iPad. So should i use separate size class for iPad? Doing this i will again have to design the UI for iPad. So is it the best way of designing screen using auotlayout?

推荐答案

如果你不希望使用大小类,那么还有一个办法,你的屏幕可能会有两个设备良好。显然,你需要重新设计的屏幕。如果你改变你的一些约束长宽比和ProportionalWidth和ProportionalHeight,你可以修复他们为这两个设备。假设在控制器中间的视图,你想在这两个设备来查看正确的,那么你需要的centerX加入上海华,CenterY到上海华,ProportionalWidth到上海华和ProportionalHeight到上海华。它会看起来完美的在这两个设备。如果您需要进一步建议,在任何情况下然后编辑你的问题,我会告诉你哪些制约你应该使用看屏幕在两个设备中正确的。谢谢你。

If you don't want to use size class then there is a way that your screens may look good in both devices. Obviously you need to redesign the screens. If you change some of your constraints to Aspect Ratio and ProportionalWidth and ProportionalHeight and you can fix them for both devices. Suppose there is a view in the middle of controller and you want to view proper in both device then you need to add CenterX to superview, CenterY to superview, ProportionalWidth to superview and ProportionalHeight to superview. And it will look perfect in both devices. If you need further suggestion in any situation then edit your question and i will tell you which constraint you should use to look the screen proper in both devices. Thanks.

这篇关于问题设计为iPad和放大器的布局;苹果手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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