Detecting a change in UISwitch

后端 未结 8 1228
暖寄归人
暖寄归人 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:07

    Log the last state so you can tell if its changed state or has been triggered with the same state.

提交回复
热议问题