Layout of the content in code is probably the weakest part of the approach I’ve presented. To make it easier, you can pre-layout everything in Interface Builder and copy the layout into code. For complicated layouts, you could even try using nib2objc to convert your XIB files to code automatically (although I’ve never done this, I’m just mentioning nib2objc because the idea is so cool).
Published on Matt Gallagher’s Cocoa With Love.
- None Found