任何其他方法来调整的意见,除了自动布局 [英] Any other method to resize views, other than Auto-layout

查看:174
本文介绍了任何其他方法来调整的意见,除了自动布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个应用程序,专为iPhone和它只有一个纵向视图。我从来没有使用过自动布局,我不觉得我现在有时间去学习它。我可以使用别的,有我的意见调整自己的设备(iPhone 4S,5 / 5S,6/6 +)?

I am building an app, exclusively for iPhones and it only has a Portrait view. I have never used autolayout before and I don't think I have time to learn it now. Can I use anything else, to have my views resize themselves for the devices(iphone 4s, 5/5s, 6/6+)?

推荐答案

删除自动版式和sizeclasses

Remove the autolayout and sizeclasses

和使用自动尺寸调整表格应用

And use autoresizing form utilities

您也可以做到这一点通过code:

You can also do it by code :

view.autoresizingMask = (UIViewAutoresizingFlexibleWidth |    
                              UIViewAutoresizingFlexibleLeftMargin);

这篇关于任何其他方法来调整的意见,除了自动布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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