iOS Question ActionSheet Return Value

Discussion in 'iOS Questions' started by kc1, May 27, 2015.

  1. kc1

    kc1 Member Licensed User

    Is it possible to have the ActionSheet return both the selected text and the index of the item selected?

    I noticed the "Click" event only returns a string, but it would be really nice if it can also return an integer with the item's row position or index in the array.

    Thank you,
    KC
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You will need to use List.IndexOf to find the index.
     
  3. kc1

    kc1 Member Licensed User

    Erel,

    That's what I ended up doing after posting the question. Thanks for confirming!

    KC
     
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