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

前端 未结 4 455
挽巷
挽巷 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:32

    AutoResizing : Autoresizing means that how the content of a view will fit to the view. It probably depends on the self content of the view.

    AutoLayout: AutoLayout means how the external constraints like the position of the view , the size of view supported by the other neighboring components.

    AutoLayout triggers the AutoResizing Task and for autoresizing activity , auto-layout forcefully or normally change or break the default constraints of views which are related to the corresponding view if needed.

提交回复
热议问题