I\'m trying to remove the separator for one UITableViewCell. I did the following:
- (UITableViewCell *)tableView:(UITableView *)tableView cellFo
If you want to hide the separation line for only a specific type of cell, you can use the following code:
override func layoutSubviews() {
super.layoutSubviews()
subviews.forEach { (view) in
if view.dynamicType.description() == "_UITableViewCellSeparatorView" {
view.hidden = true
}
}
}
Write this code in the cell (it must be a subclass of UITableViewCell) for which you do not want a separation line to appear.