Swift 3/4
Custom delimiter, put this code in a custom cell, which is a subclass of UITableViewCell (either in CellForRow or WillDisplay TableViewDelegates for non-user cells):
let separatorLine = UIView.init(frame: CGRect(x: 8, y: 64, width: cell.frame.width - 16, height: 2)) separatorLine.backgroundColor = .blue addSubview(separatorLine)
in the viewDidLoad method:
tableView.separatorStyle = .none
Sevy11 Aug 09 '17 at 17:53 on 2017-08-09 17:53
source share