自动布局在iOS 6的Beta版 [英] Auto Layout in iOS 6 Beta

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

问题描述

自动布局在iOS 6中公布,但我已经很难找到关于它的任何资料或文件。它究竟是如何使用的?是否使用NSLayoutConstraint?是否有任何可用资源?

Auto Layout was announced in iOS 6 but I've been having difficulty finding any information or documentation about it. How exactly is it used? Does it use NSLayoutConstraint? Are there any resources available?

推荐答案

如果自动布局在iOS 6中原来是像可可自动布局在任何的Mac OSX 10.7,请查看Cocoa自动布局指南,一个公开的文件,可能会给你的如何,将在可可触摸的工作的想法。

If Auto Layout in iOS 6 turns out to be anything like Cocoa Auto Layout in Mac OSX 10.7, the Cocoa Auto Layout Guide, a publicly available document, may give you an idea of how it would work in Cocoa Touch.

由可可触摸使用的底层引擎是食火鸡以及它在其他工具包使用,如 enaml 。我最近写食火鸡的简要概述,与可可触摸和enaml 其中I端口可可自动布局为例,Python和enaml。

The underlying engine used by Cocoa Touch is Cassowary, and it's also used in other toolkits, such as enaml. I recently wrote a brief overview of Cassowary, with a comparison between Cocoa Touch and enaml wherein I port a Cocoa Auto Layout example to Python and enaml.

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

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