Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

5️⃣L5: Delegation + Protocol

Fall 2026

No pre-lecture reading for today either, but feel free to add songs to our class playlist while you wait :)

This is the last UIKit lecture. We're taking UICollectionView one step further by making the individual cells clickable, and revisiting UIView, Push/Pop, Protocols, and Delegation.

UICollectionView Follow-Along (same as last lecture)

Using git in Terminal

1. Clone the Repository

git clone https://github.com/intro-to-ios/lec5-uicollectionview.git

2. Delete the Cell File

Remove the file in this directory: /Views/BirdCollectionViewCell.swift/

3. Follow Along!

How to access the solution code

You have two options:

  1. Through the GitHub website

    1. Press the button that says main (this will show all the branches in this repo)

    2. Choose the branch 1-collectionview

  2. Through the terminal

    1. restore your changes or stach them

      1. git restore . or git stash push

    2. Checkout to the solution branch

      1. git checkout 1-collectionview

    3. Now your should have the solution code

Lecture Slides

Fall 2025 Lecture Video

Assignment

🧑A2.5: Profile Add-On

Last updated

Was this helpful?