Ios7 Uiswitch Its Event Valuechanged: Calling Continuously Is This Bug or What..

iOS7 UISwitch its Event ValueChanged: Calling continuously is this Bug or what..?

I got many user that facing same issue so may be this is bug of UISwitch so i found just now for temporary solution of it. I Found one gitHub custom KLSwitch use this for now hope apple will fix this in next update of xCode:-

https://github.com/KieranLafferty/KLSwitch

UISwitch Doesn't Send valueChanged Event When Changed Programmatically

This is correct and desired behavior. Since you explicitly changed the value, it is up to you to decide how to handle the changed value.

The reason for this is because it is not uncommon to explicitly change the value of control after being notified of its value being changed through user interaction. If the explicit state change caused the event to fire again, you would end up in an infinite loop.



Related Topics



Leave a reply



Submit