Auto Layout in iOS 6 Beta

徘徊边缘 提交于 2019-11-30 20:09:18

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/11127641/auto-layout-in-ios-6-beta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!