Hi I have a TableViewController
with two static cells, however when displayed, it shows the two static cells, and then all the other empty cells for the tablevi
Swift 4 Elaborating on HorseT's answer, first control drag from your Table View in your storyboard, to your View Controller class and create an outlet called tableView.
@IBOutlet weak var tableView: UITableView!
Then, your viewDidLoad in your View Controller should look something like this:
override func viewDidLoad() {
super.viewDidLoad()
tableView.dataSource = self
tableView.delegate = self
tableView.tableFooterView = UIView()
}