Auto Layout in iOS 6 Beta

后端 未结 1 828
抹茶落季
抹茶落季 2021-01-07 09:58

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

相关标签:
1条回答
  • 2021-01-07 10:13

    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.

    0 讨论(0)
提交回复
热议问题