Bug? Segmented Control Click Event stops index changed from firing

Discussion in 'iOS Bugs & Wishlist' started by Brian Robinson, Mar 20, 2015.

  1. Brian Robinson

    Brian Robinson Active Member Licensed User

    Not sure if this is a bug as it could be by design, but when you consume the Click event of a segmented control, the indexchanged event doesn't fire.

    It could be because the click is registered as a momentaryClick event which means the indexchanged would not happen?

    like I said not sure if it is a bug, but it might be worth noting in the documentation that the click event cancels out the indexchanged event.

    Cheers
    Brian
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    All views inherit the Click and LongClick events from the View class. There are cases where these events will not do anything useful, like in the case here. However they are still there.
     
  3. Brian Robinson

    Brian Robinson Active Member Licensed User

    Makes sense. Thanks for the explanation Erel.

    Cheers
    Brian
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice