遍历UISegmentController的子view 获取到竖线view 它是一个UIImageView 设置它的tintColor即可
//修改UISegmentController的竖线颜色
for Segment in self.segmentView.subviews{
let imageView : UIImageView= Segment.subviews[1] as! UIImageView
imageView.tintColor=UIColor.ColorHex(hex:"#c9caca")
}