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

Programming Rust

Programming Rust

Jim Blandy / O'Reilly Media / 2016-8-25 / GBP 47.99

This practical book introduces systems programmers to Rust, the new and cutting-edge language that’s still in the experimental/lab stage. You’ll learn how Rust offers the rare and valuable combination......一起来看看 《Programming Rust》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

html转js在线工具
html转js在线工具

html转js在线工具