iOS Question TextView ... again

Discussion in 'iOS Questions' started by imbault, May 11, 2015.

  1. imbault

    imbault Well-Known Member Licensed User

    Sorry @Erel to come back on TextView, but like there is no event except click and longclick, I've add a TextView in a TableView, I just want to know if this TextView has been modified in order to save changes, I don't see how to do that, before the user strickes page back

    Thanks
     
  2. narek adonts

    narek adonts Well-Known Member Licensed User

    Why you are not using TextField?
     
  3. imbault

    imbault Well-Known Member Licensed User

    Cause I need a multi lines control...., any suggestion?
     
  4. Albi

    Albi Active Member Licensed User

    save it every time user goes back?
     
  5. narek adonts

    narek adonts Well-Known Member Licensed User

    The most costume way is to use inline OBJC and use UITextView delegates to catch every event.
     
  6. imbault

    imbault Well-Known Member Licensed User

    we don't have this event
     
  7. imbault

    imbault Well-Known Member Licensed User

    I would be delighted to receive such code
     
  8. Brian Robinson

    Brian Robinson Active Member Licensed User

    What about the Page_Disappear event. Can you save whatever is in the TextView then?
     
  9. imbault

    imbault Well-Known Member Licensed User

    Right, that's what I've done, but in order to validate stuff in the tableview, I'm obliged to go back from main page...
     
  10. Brian Robinson

    Brian Robinson Active Member Licensed User

    Ok. Maybe as Erel said in another thread. Don't show the Back button and add your own button to handle the going back. At least then you could do the validation?
     
  11. imbault

    imbault Well-Known Member Licensed User

    Both alternatives are do able, but they are not satisfying, I definitely think we need events other than click and longclick for TextView, is obvious...
     
  12. Erel

    Erel Administrator Staff Member Licensed User

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