Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to resize the subviews automatically for iOS6 because autoresize is removed from iOS6?

how to resize all the subviews inside a view automatically for iOS6 because autoresize is removed from iOS6?

like image 741
Manoj Chandel Avatar asked Dec 07 '25 02:12

Manoj Chandel


1 Answers

Technically the answer is to use autolayout, the replacement to the original autoresize feature available in previous iOS versions.

The new system, however, takes some time to get used to and to set up for all of your views and controls, so if you'd like to use the old autoresize controls, you can! It hasn't been removed, it's just that new apps and storyboards are automatically configured to use autolayout by default.

If you deselect "Use autolayout" in your storyboard files (first tab of the Utilities panel) then autolayout will be disabled and the autosizing controls will be available again.

like image 123
ttarik Avatar answered Dec 08 '25 15:12

ttarik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!