iOS Question LongClick on TextField, how to fire?

Discussion in 'iOS Questions' started by jai, Mar 20, 2015.

  1. jai

    jai Member Licensed User

    I have an array of TextFields on a Scrollview for data input. Data is captured when a TextField is clicked and BeginEdit is fired. A LongClick on the TextField does not fire with longer press. The BeginEdit is fired immediately when a TextField is pressed and the LongClick (or Click) events never get fired.

    Any suggestions as how to keep the BeginEdit/EndEdit and be able to trap LongClick for a TextField?
  2. Erel

    Erel Administrator Staff Member Licensed User

    LongClick (and Click) events are inherited to all controls. However you should not use LongClick with TextField as TextField already handles this gesture.
  3. jai

    jai Member Licensed User

    Thanks Erel for clarifying!
  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