I tried tableview.tableFooterView = UIView () and this did not work for me. That is why I use my own TableViewViewCell.
I found hack tho. In my func numberOfRowsInSection
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return yourArrayClass.count - 1 }
And that makes my extra empty custom UITableViewCell no longer appear. Of course, this is superfluous empty. I will check it out a bit more by adding more cells. For reference, I use Swift 3, Firebase, a custom cell class, inside the cellForRowAt function.
Cory Billeaud Jun 23 '17 at 19:39 on 2017-06-23 19:39
source share