Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.

JIHOON JUNG
JIHOON JUNG
10,927 Points

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