iOS 复选框 SCheckbox

码农软件 · 软件分类 · 分段选择(Segment) · 2019-06-18 07:43:54

软件介绍

SCheckbox 是 Swift 编写的复选框控件。

class ViewController: UIViewController {

    @IBOutlet weak var check: SCheckBox!

    override func viewDidLoad() {
        super.viewDidLoad()
        self.check.color(UIColor.grayColor(), forState: UIControlState.Normal)
        self.check.textLabel.text = "this is a checkbox"
        self.check.addTarget(self, action: "tapCheck:", forControlEvents: UIControlEvents.ValueChanged)
    }

    func tapCheck(checkBox: SCheckBox!){
        println("\(checkBox.checked)")
    }}


本文地址:https://www.codercto.com/soft/d/8219.html

How to Solve It

How to Solve It

Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95

This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换