I have a problem again.
I have checkboxes . When I click it I am basically choosing it. As in the picture, when I choose the boxes in front of Label1 and Label2, and when I click "That's it" button I want my program to store these Labels in a set as a string.
So I have my checkboxes if - else statement for marked or unmarked(pic 2). How can I make this real ?? Thanks.
var isChecked : Bool = false {
didSet{
if isChecked == true{
self.setImage(checkedImage, forState: .Normal)
checkedItemsSet.insert("itemsName") // I NEED TO DECLARE ITEMS NAME.
}else {
self.setImage(uncheckedImage, forState: .Normal)
}
}
}
Aucun commentaire:
Enregistrer un commentaire