Use automatic layout or not iOS 6.x

I am developing an application with Storyboard on iOS 6.1 (with many features - star rating, sqlite DB, apple maps, etc.). Sometimes it happens that I have to turn off the machine (for example, for UIScrollView ) or use the code to solve this problem, but there are other examples. However, when I turned it off, I have to configure the UILabels with the exact width or other things.

What is the best option? Use automatic layout or not use it on iOS 6.x with storyboard?

+6
source share
3 answers

Autolayout, like many other features added to in recent years ( and , for example) was designed to make it easier for people who are just starting to work on the iOS / Mac platform, and for people who already have it, but not from the old days of NeXT or OS X, and therefore may use some simplification for the entire development process.

One thing you can do is use by default, so simplify working with ViewControllers that run in both portrait and landscape orientations and turn them off on those rare occasions where it’s more convenient for you to store everything using the old spring system and struts. Another thing you can do is also add Autolayout restrictions to your code, not through the Xcode Interface Builder, if that suits your style better.

My advice is to use any system that makes you more comfortable, regardless of the current trend.

+5
source

I do not use autolayout, because now it is raw. If you order restrictions and then decide to move the item, you can get a real mess.

At this point, it is much safer to use springs and spacers.

Update: but it’s fine to use it in iOS7 - there are many useful tools in Xcode 5.

+4
source

Honestly, it depends on preferences, but I never use a machine, and I doubt that I will ever be. I guess I just prefer everything to be exactly the way I define it, and I don’t trust the auto layout.

+2
source

All Articles