Rupesh Mittal
Rupesh Mittal

Reputation: 41

delegate = self causes Thread 1: exc_bad_instruction (code=exc_i386_invop subcode=0x0)

@IBOutlet weak var tableView: UITableView!

override func viewDidLoad() {
    super.viewDidLoad()

    tableView.delegate = self // error occurs here
}

Upvotes: 1

Views: 460

Answers (1)

Nemanja
Nemanja

Reputation: 194

Make sure that your @IBOutlet tableView is properly connected with interface builder.

Upvotes: 1

Related Questions