SlideControl是Swift2.0创建的垂直滑动控件
使用:
let titles = ["1st Option", "2nd Option", "3rd Option", "4th Option"]let slideControl = DHSlideControl(titles: titles)slideControl.translatesAutoresizingMaskIntoConstraints = falseslideControl.addTarget(self, action: "didChange:", forControlEvents: .ValueChanged)slideControl.color = UIColor(hue: 0.6, saturation: 0.9, brightness: 0.65, alpha: 1.0)slideControl.layer.cornerRadius = 10
评论