Skip to content

Beginner - Move from individual IBOutlets to an IBOutletCollection #1

Description

@olivaresf

TodayViewController uses individual outlets for each collection view displaying the day's emoji trackers. UIKit has a feature that will save us some code: IBOutletCollections.

Goal:

  • Take each IBOutlet assigning DayColumnView and replace them with an IBOutletCollection

Fix the following errors:

  • Make sure you remove the dangling references to each IBOutlet in Today.storyboard.
  • Change private func configureViews() to use the outlet collection.
  • When assigning day.onDayTapped, use fast enumeration with an index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions