加减控件IRPlusLessSwift 发表于 2016-08-24 | Demo下载 效果展示 使用代码1234567891011import UIKitclass ViewController: UIViewController { /// 定义属性 var plusLessView : IRPlusLessView? override func viewDidLoad() { super.viewDidLoad() plusLessView = IRPlusLessView(frame: CGRect(x: 100,y: 100,width: 200,height: 50)) plusLessView!.maxNum = 3 plusLessView!.styleColor = UIColor.greenColor() self.view.addSubview(plusLessView!) } 具体代码请下载Demo