I'm using the M13Checkbox pod. I want to print "remember me" to labeltextfield when checkbox is checked, and "remember me" when Checkbox is not checked. When I click it, it just says, "don't remember me."
let checkboxm13: M13Checkbox = {
let checkboxe = M13Checkbox()
checkboxe.stateChangeAnimation = .stroke
checkboxe.addTarget(self, action: #selector(checkboxvalue(sender:)), for: .valueChanged)
return checkboxe
}()
@objc func checkboxvalue(sender: Checkbox) {
if sender.isSelected == true {
labelcheckbox.text = ("Beni Hatırla")
}
if sender.isSelected == false {
labelcheckbox.text = ("Hatırlama")
}
}
Aucun commentaire:
Enregistrer un commentaire