Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Photo Browser iPhone App Collection Views Customizing a UICollectionViewFlowLayout

Why wouldn't you use storyboard for this tutorial??

It seems like a better way of understanding the topic.

1 Answer

Joshua C
Joshua C
51,696 Points

The storyboard feature in Xcode was not always around. Back in the day, iOS developers used to use something called Xibs and Nibs to create views. In other words, iOS developers had to create views programmatically.

The storyboard feature wasn't released until iOS 5.0 and this video was just released at the time of iOS 6.0, so the instructor was already used to the idea of creating views programmatically and not familiar enough with the relatively new concept of storyboards.

On the bright side, it's good to see views done in code instead of storyboard because it helps understand what's going on in the background and also, sometimes, storyboard won't do the things you want it to do with your views. In that case, you have to create custom views or segues in code.

10,927 Points

Exactly, wished to learn layout programmatically, think this track is the one.