Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a raywenderlich.com Ultimate Beginner Subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Challenge: Creating More Rows

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" }

With table views, one row is not enough. You'll need a lot more--and your challenge is to make this happen.

Contributors

Reviews

Comments