iOS版:自动版式多个按钮 [英] iOS: autolayout for multiple button

查看:171
本文介绍了iOS版:自动版式多个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用我有这样4英寸的屏幕视图:

In my app I have a view for 4 inch screens in this way:

然后我想,以减少该应用程序已在iPhone上运行的采用了3.5英寸的屏幕我的按钮的大小,所以我把我的布局是这样的:

And then I want to reduce the size of my buttons when the app is running on an iPhone with a 3.5 inch screen, so I set my layout in this way:

但最后我以这种方式获得视图

but finally I obtain a view in this way

在这种方式我按钮的大小都OK,但他们没有对齐,所以在这种情况下,什么是有排列按键的方式?

In this way the size of my button are ok but they are not aligned, so in this situation, what's the way to have aligned buttons?

感谢

推荐答案

你好根据你的问题我已经创建演示类似于您需要的控件需要设置布局。我已经增加了对单一控制并取得视频图像此使用多个控件设置您重新尝试设置该布局。
结果

Hi as per your question i've created demo similar to the layout for which you need the controls need to set. I've added images for single control and made video this using multiple controls to set the layout which you retrying to set.


搜索结果
链接:https://www.youtube.com/watch?v=Nl2iMF0yKW8&list=PLXCowKcXAVgrxHKLWTa4HxNPrSmTj3D-_
结果
希望这将解决您的问题。



link: https://www.youtube.com/watch?v=Nl2iMF0yKW8&list=PLXCowKcXAVgrxHKLWTa4HxNPrSmTj3D-_
Hope this will solve your issue.

这篇关于iOS版:自动版式多个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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