What is Auto Layout?

后端 未结 7 2183
不知归路
不知归路 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:52

    What is Auto Layout?

    Auto Layout is a constraint-based layout system. It allows developers to create an adaptive interface that responds appropriately to changes in screen size and device orientation. Without using Auto Layout, it would be very hard for you to build an app that supports all screen sizes.

    Why Auto Layout?

    Auto Layout is a way that lets developers create user interface by defining relationships between elements. It provides a flexible and powerful system that describes how views and the UI controls relate to each other. By using Auto Layout, you can get an incredible control over layout, with a wide range of customization, and yield the perfect interface.

    Auto Layout is compatible with many of Apple’s most exciting application programming interfaces (APIs), including animations, motion effects, and sprites.

    Reference: https://www.appcoda.com/introduction-auto-layout/

提交回复
热议问题