A case for programmatic views in iOS
If you're new to ios, building ui in xcode, and frustrated with inability to search for help effectively.
Layout your ui programmatically. I've found PureLayout helpful for this.
- Search based on concrete syntax (as opposed to search for the button that looks like … in xcode version …)
- Reference other people's ui, eg PureLayout's demos, without having to load it in xcode
- Comment on configuration (credit to Yong for noticing this)
- Code-review changes
- Reduce cognitive load because you only have to understand autolayout, not autolayout + interface builder
Interface builder does a lot (I recently learned from Riz that LaunchKit used compiled storyboards for dynamic ui!), and is Apple's recommended approach. I suspect I'll have a better experience with it once I have more ui experience.