tableView crashes on launch Xcode 11

so even when i try to create the mostbasic of tables,it still crashed my app throwing a


2019-09-30 22:05:39.886579-0400 BHS 2021[6041:478493] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<BHS_2021.studentUpdates 0x7fa13ae2c560> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key classUpate.'



and legit the code is


//

// studentUpdates.swift

// Flash Chat

//

// Created by James Biser on 9/26/19.

// Copyright © 2019 James Biser. All rights reserved.

//


import UIKit




class studentUpdates: UIViewController, UITableViewDelegate, UITableViewDataSource {



override func viewDidLoad() {

super.viewDidLoad()


// Do any additional setup after loading the view.

}

let list = ["update1", "update2"]

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

return list.count

}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)

cell.textLabel?.text = list[indexPath.row]

return cell

}


// MARK: - Navigation


// In a storyboard-based application, you will often want to do a little preparation before navigation

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {

// Get the new view controller using segue.destination.

// Pass the selected object to the new view controller.

}



}


the table delgate and daaSource was done through the Storyboards

Accepted Reply

nvm i just created a new tableview

Replies

nvm i just created a new tableview