Updated for Swift 3:
If you want to change the height of the UITableView separator, use the code below.
You must add it to the awakeFromNib() UITableViewCell method to avoid re-creating.
override func awakeFromNib() { super.awakeFromNib() // Initialization code let mScreenSize = UIScreen.main.bounds let mSeparatorHeight = CGFloat(3.0) // Change height of speatator as you want let mAddSeparator = UIView.init(frame: CGRect(x: 0, y: self.frame.size.height - mSeparatorHeight, width: mScreenSize.width, height: mSeparatorHeight)) mAddSeparator.backgroundColor = UIColor.brown // Change backgroundColor of separator self.addSubview(mAddSeparator) }
Kiran jadhav Aug 26 '17 at 7:48 on 2017-08-26 07:48
source share