skip to Main Content

Xcode – Redundant conformance of 'ViewController' to protocol 'UITableViewDelegate' and another error

import UIKit class ViewController : UIViewController, UITableViewDelegate , UITableViewDataSource{ @IBOutlet var tableView: UITableView! var tasks = [String]() override func viewDidLoad() { super.viewDidLoad() self.title = "Tasks" tableView.delegate = self tableView.dataSource = self if !UserDefaults().bool(forKey: "setup"){ UserDefaults().set(true, forKey: "setup") UserDefaults().set(0, forKey: "count")…

VIEW QUESTION

Xcode – How can I use swift Viewcontroller through write coding to open the objective-c Viewcontrollerv page?

The error log like below 2021-06-03 09:59:16.251029+0800 testing2[7167:2095191] [Storyboard] Unknown class _TtC8testing218NextViewController in Interface Builder file. Could not cast value of type 'UIViewController' (0x1d8c46428) to 'NextViewController' (0x102a90c50). 2021-06-03 09:59:16.252513+0800 testing2[7167:2095191] Could not cast value of type 'UIViewController' (0x1d8c46428) to 'NextViewController'…

VIEW QUESTION
Back To Top
Search