Post

Replies

Boosts

Views

Activity

Use of unresolved identifier? Could someone help please :)
Hi, This is one of my first projects and I am stuck, my variable "quotes" is saved as a bunch of quotes in a list, I am trying to make the amount of columns in a table be the number of quotes and the tables boxes have the quote inside them as their text. :) thanks my code: {code} import UIKit class QuoteTableViewController: UITableViewController {     override func viewDidLoad() {         super.viewDidLoad()     }     // MARK: - Table view data source                    override func numberOfSections(in tableView: UITableView) -> Int {         return 1     }               override func tableView( tableView: UITableView, numberOfRowsInSection section: Int) -> Int {         return quotes.count     }     override func tableView( tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {         let cell = UITableViewCell ()         cell.textLabel?.text = quotes[indexPath.row]         return cell     }          class QuoteTabelViewController: UITableViewController {                   var quotes = [ ":)", ":(",             ]     } {code}
3
0
330
Aug ’20