You need to declare your tableView
up by your other @IBOutlet
s since you are using a UIViewController
and putting a tableView
within it's view. Currently the UIViewController
doesn't know what tableView
you are referring too.
@IBOutlet var tableView: UITableView!
Then link it up in the interface builder as you have done with your other @IBOutlet
s. Make sure you link the delegate
and dataSource
properties of your tableView
back to the view controller as well.
To do the latter, after you select your tableView
, select the Connections Inspector area, as shown in the picture below, and connect them back to your UIViewController
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…