Auto Layout for iOS 6+

I’ll admit that this previous Cocoaheads Boston meeting got me thinking about Auto Layout again. I tried it in the past on my own and found it too different from springs and struts that I simply converted my ViewController to use those instead of Auto Layout a third of the way along. I just couldn’t be bothered.

Scrubbing the net for some information beyond the developer documentation given by Apple, I wanted to find a tutorial or two that was decent that could get myself better caught up. Yes UICollectionViews are next (saw them demo’d at WWDC), but let me get back on track.

I found a tutorial (in two parts because each is so full of information) on RayWenderlich by Matthijs Hollemans and they are extremely well done.

  1. Part 1 of 2
  2. Part 2 of 2

Matthijs has put a lot of effort into these tutorials and you can follow right along in your test Xcode project. I think that these two tutorials can go a very long way in getting you up to speed with Auto Layout and make it something you won’t despise or fear in the future. It obviously doesn’t always make sense to use it over springs and struts, but there are times when it can make your development layouts much, much more powerful.

Continue reading “Auto Layout for iOS 6+”

Tagged : / /