“使用自动版式"与“使用自动版式"之间的区别和“使用尺寸类别"在xcode 6.1中? [英] Difference between "Use auto layout" and "Use size class" in xcode 6.1?

查看:51
本文介绍了“使用自动版式"与“使用自动版式"之间的区别和“使用尺寸类别"在xcode 6.1中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

xcode 6.1中的情节提要板上的使用自动布局"和使用尺寸类别"有什么区别?

What is the difference between the "Use auto layout" and "Use size class" on storyboards in xcode 6.1?

推荐答案

自动版式是一个系统,可通过创建元素之间关系的数学描述来布局应用程序的用户界面.您可以根据对单个元素或元素集之间的约束来定义这些关系."

"Auto Layout is a system that lets you lay out your app’s user interface by creating a mathematical description of the relationships between the elements. You define these relationships in terms of constraints either on individual elements, or between sets of elements."

尺寸类使您可以为某些屏幕尺寸设置不同的约束.这让您超越了基本的拉伸布局.Apple在Xcode 6中引入了Size Classes.

Size Classes let you set different constraints for certain screen sizes. This let’s you go beyond basic stretching layouts.In Xcode 6 Apple introduced Size Classes.

这篇关于“使用自动版式"与“使用自动版式"之间的区别和“使用尺寸类别"在xcode 6.1中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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