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

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

    Use autolayout in the superview with constraints [this helps when there are changes in the space in the View due to different devices(such as 3.5 or 4 inches retina)] and use autoresize for resizing the GUI objects in a view [this helps when there are changes in the space in the View during the orientation of the device]

提交回复
热议问题