Detecting a change in UISwitch

后端 未结 8 1263
暖寄归人
暖寄归人 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 15:00

    When you toggle the switch off/On the "value changed" has been called.So you can detecting a change in switch by calling method on valueChanged.

提交回复
热议问题