Beginning Table Views

Aug 28 2018 Swift 4, iOS 12, Xcode 10

Part 1: Getting Started

7. Challenge: Creating More Rows

Lesson Complete

Play Next Lesson
Next
Save for later
About this episode
See versions
See forum comments
Cinema mode Mark as Complete Download course materials
Previous episode: 6. IndexPaths Next episode: 8. Introduction to Protocols

The slide in the video is incorrect. The provided code should be: if indexPath.row % 5 == 0 { label.text = "Take a jog" } else if indexPath.row % 4 == 0 { label.text = "Watch a movie" } else if indexPath.row % 3 == 0 { label.text = "Code an app" } else if indexPath.row % 2 == 0 { label.text = "Walk the dog" } else if indexPath.row % 1 == 0 { label.text = "Study design patterns" }