What is the basic difference between Auto Layout and Auto Resizing in iOS

前端 未结 4 520
挽巷
挽巷 2021-02-05 18:05

I have been searching the proper difference between Auto Layout and Auto Resizing, but didn\'t able to find the exact answer. Where I can use \"Auto Layout\" and where \"Auto Re

4条回答
  •  离开以前
    2021-02-05 18:44

    I recommend watching the WWDC 2012 session https://developer.apple.com/videos/wwdc/2012/?id=202

    Auto Layout is a new way to define dynamic GUIs. Before, we had autoresizing masks, that described how a subview will resize or move when its superview is resized. With Auto Layout you can do the same and also a lot more complicated GUIs quite easily.

    Autoresizing is one of the most useful property for layouting the views in their hierarchies. go through this link.

    http://www.techpaa.com/2012/05/understanding-uiview-autoresizing.html

提交回复
热议问题