Skip to content

wanaya/SCheckbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SCheckbox

SCheckbox is a easy control for use in your app.

How to use

Put in you XIB or storyboard a UIView with class SCheckbox, connect a IBOutlet and configure.

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)")
    }

}

About

Checkbox control in swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages