Detecting a change in UISwitch

后端 未结 8 1242
暖寄归人
暖寄归人 2021-02-18 14:19

This sounds trivial but I\'m noticing some weirdness. I\'ve wired up a handler for the Value Changed event of a UISwitch. What I would expect is that each time the hand

8条回答
  •  忘了有多久
    2021-02-18 14:57

    My problem was a stupid one... I was expecting the enabled value to change, but obviously that isn't the correct value to inspect upon the toggle of the switch, the on or isOn is the correct thing to use.

提交回复
热议问题