Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto Layout(Constraints) Vs Auto resizing mask(Springs & Struts)

These layout systems help you for resizing regardless screen size and orientation.

If I have Auto resizing mask(Springs & Struts) like easy solution, why should I use Auto Layout(Constraints) ?

like image 813
Nitesh Avatar asked Jul 31 '14 09:07

Nitesh


1 Answers

I had the same question when I started using auto layout...

Auto Layout can do all that Springs & Struts provides us and more.

Auto Layout can be applied to any two views depending on the need and not only to parent child view hierarchy like Springs & Struts. we can give priority to constraints and have constraint inequalities.

Suggestion: when you start applying auto layout on views, first you should thoroughly analyze "How the views will behave for different scenarios" and then according to your needs apply constraints, the more you use it you come to know how difficult problems can be solved quite easily by auto layout.

like image 199
Anurag Bhakuni Avatar answered Oct 19 '22 01:10

Anurag Bhakuni