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
Alex Taylor2,758 Points
UI Collection View - Help!
I am trying to create a grid like dashboard for an app I am working on and I think UICollectionView is the way to go?. I've only really seen image layout examples of how UICollectionView works, and I think I may be biting off more than I can chew at the moment, as I am finding it difficult to understand how to set it up.
Here is an example of my wireframe for the particular screen - with arrows and questions!
Is it correct to think I need to set up two sections within the collection view. The top section has one cell, which I need to create a custom collection view cell for. The bottom section has a supplementary header view, and a cell that I need to make another custom collection cell for. This cell will populate as many times as there is data to populate it with.
I have got myself VERY confused, so would really appreciate any help and guidance anyone can give me, or point me in the direction of any similar examples or tutorials.
Amit BijlaniTreehouse Guest Teacher
Why not just setup a custom UIView with all the controls that you need. Why do you think you need a collection view? As the name indicates a collection view is meant for a collection of objects.