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

Bad Blood

Bad Blood

John Carreyrou / Knopf / 2018-5-21 / USD 27.95

The full inside story of the breathtaking rise and shocking collapse of Theranos, the multibillion-dollar biotech startup, by the prize-winning journalist who first broke the story and pursued it to t......一起来看看 《Bad Blood》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

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

UNIX 时间戳转换