I am a complete beginner. I took some code from tutorials. I have a project about adding notes, saving them, deleting them, attaching images and more. When I run the app, I get this error next to @main in the AppDelegate file.
Thread 1: "[<App.NewNoteViewController 0x12f310680> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key saveNotes."
The view controller file code is
import UIKit
class NewNoteViewController: UIViewController {
@IBOutlet weak var deleteNote: UIBarButtonItem!
@IBOutlet weak var saveNote: UIBarButtonItem!
@IBOutlet weak var attachNotes: UIBarButtonItem!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// 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.
}
*/
}
I fixed all the storyboard perfectly. Please help.