The code is:
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAction func testButton(_ sender: UIButton) {
print("Hello")
}
}
It gives me the error "unrecognized selector sent to instance 0x7fe985706fd0" when I press the button.