Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gallaugher/fe12842f2ec206c2c6ee23ebb7cff550 to your computer and use it in GitHub Desktop.

Select an option

Save gallaugher/fe12842f2ec206c2c6ee23ebb7cff550 to your computer and use it in GitHub Desktop.
SpotDetailViewController.swift's tableView(cellForRowAt:)
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "ReviewCell", for: indexPath) as! SpotReviewsTableViewCell
cell.review = reviews.reviewArray[indexPath.row]
return cell
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment