什么是自动布局? [英] What is Auto Layout?

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

问题描述

什么是自动布局 - 这是什么做的,是它的一个iOS 5的功能

What is Auto Layout - what does it do, and is it an iOS 5 feature?

由于新的iPhone 5有一个更大的屏幕上,所有关于如何优化应用程序的选项,它回落到自动布局。

Since the new iPhone 5 has a bigger screen, all the options on how to optimize your applications for it come down to Auto Layout.

你能指出我的一些文章有关自动布局,我怎么能与我的项目相适应呢?

Can you point me to some article about Auto Layout, and how I can adapt it with my project?

推荐答案

我建议看WWDC金文检索的简介自动布局iOS和OS X

I recommend watching the WWDC 2012 session Introduction to Auto Layout for iOS and OS X.

<一个href=\"https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html\">Auto布局是定义动态图形用户界面的新方法。之前,我们有自动尺寸调整口罩,这说明一个子视图将如何调整或当它的父的大小调整移动。有了自动布局,你可以做同样的,也有很多更复杂的图形用户界面很容易。

Auto Layout is a new way to define dynamic GUIs. Before, we had autoresizing masks, that described how a subview will resize or move when its superview is resized. With Auto Layout you can do the same and also a lot more complicated GUIs quite easily.

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

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