I am learning Xcode from a book 'iOS Programming for Beginners' and although I am sure I entered the text correctly I get the following error when I click on the Location button. The code builds with out error, so I don't know where the error is!
Here is the code:
cal=n anyone explain why I get this error?
Here is the code:
Code Block // // LocationViewController.swift // LetsEat3 // // Created by Tony Hudson on 27/04/2021. // import UIKit class LocationViewController: UIViewController, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! override func viewDidLoad() { super.viewDidLoad() } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 10 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "locationCell", for: indexPath) cell.textLabel?.text = "A Cell" return cell } }
cal=n anyone explain why I get this error?