- Create a new Xcode project with the name Dynamic Cells and a Single View template.
- Add a UITableView with the delegate and data source set. Add a prototype cell with a basic style, as we did in section one. Implement the delegate and data source and display only four cells.
- In ViewController.swift, add the following titles to be displayed:
let titles = ["This is very simple title", "Long text goes here\nLong text goes here\nLong text goes here\nLong text goes here\nLong text goes here\nLong text goes here", "Some text goes here, Some text goes here, Some text goes here, Some text goes here, Some text goes here", "Long text goes here\nLong text goes here\nLong text goes here\nLong text goes here\nLong text goes here\nLong ...