Bug? strange switch valuechanged event issue

Discussion in 'iOS Bugs & Wishlist' started by qsrtech, May 25, 2015.

  1. qsrtech

    qsrtech Active Member Licensed User

    Not sure if this is by apple design but it is definitely not good if it was. The issue is if I "drag" the switch then it fires multiple valuechanged events (with the same value). If there's a way, please make it only fire if the value is actually different.
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. qsrtech

    qsrtech Active Member Licensed User

    Since you're probably wrapping it, is there any way for you to track it at the class level and only forward the event when it's actually chsnged?
  4. narek adonts

    narek adonts Well-Known Member Licensed User

    I think the best solution if it is a bug is to track the TOUCH UP event to have the final value
  5. qsrtech

    qsrtech Active Member Licensed User

    It might be a solution but i'm not sure i'd say it's the best solution. How are we supposed to know this solution unless maybe some help is provided in the IDE informing us of a possible bug and work around.

    The best solution is to have the event fire as designed, I wasted a lot of debugging time because of it.
    Dismiss Notice