Removing last separator of cell in table
ios8, swift, uitableview
Solution
Swift 5 Version of top voted answer:
tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 1))
It works even if the number of cells is dynamic.
Problem
I have a static TableView set up in my storyboard and i'm trying to remove the separator in the last cell for aesthetic purposes. I've looked at the various answers on this site and other websites and they all point to this type of code for IOS8 ``` self.tableView.tableFooterView = UIView() ``` However when I run the app the separator is still there. Not too sure what i'm doing wrong.