SlideControl垂直滑动控件
SlideControl 是 Swift 2.0 创建的垂直滑动控件
使用:
let titles = ["1st Option", "2nd Option", "3rd Option", "4th Option"] let slideControl = DHSlideControl(titles: titles) slideControl.translatesAutoresizingMaskIntoConstraints = false slideControl.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
评论