-2

i want get state checkbox index 1 2 3 4

I have tried the below code but it doesn't seem to work

app.checkBoxes.element(boundBy: 1)

Can someone please tell what i am doing wrong.

chirag90
  • 2,211
  • 1
  • 22
  • 37

1 Answers1

0

In order to have the checkbox state, you can use this:

yourCheckbox.value as! String

If the checkbox is checked, the value is "1" ; otherwise the value is "0".

cesarmarch
  • 617
  • 4
  • 13