What is Auto Layout?

后端 未结 7 2186
不知归路
不知归路 2020-12-07 19:02

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

Since the new iPhone 5 has a bigger screen, all the options on how to optimize your applications f

7条回答
  •  北海茫月
    2020-12-07 19:40

    https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html

    "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."

    From: https://stackoverflow.com/a/11129597/1648976

    And the WWDC Session: https://developer.apple.com/videos/wwdc/2012/?id=202

提交回复
热议问题