iOS Question TEXTVIEW SCROLL To the begining

Discussion in 'iOS Questions' started by imbault, Mar 25, 2015.

  1. imbault

    imbault Well-Known Member Licensed User

    Hi,
    I have a 500 height textview in the designer, set to disable, when the page is shown, the textview does show the text in the middle, even if a put a ScrollTo(0)

    Any solution

    thx

    Patrick
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is not scrolling when you call ScrollTo?

    Does it only happen when the textview is disabled?
     
  3. imbault

    imbault Well-Known Member Licensed User

    On the designer, this Textview is disabled cause I want only to display it, I can try to enable it to see the behaviour
     
  4. imbault

    imbault Well-Known Member Licensed User

    Whatever state is the TEXTVIEW enable ou disable, impossible to scroll to top with ScrollTo(0)
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    I've tested it with the attached code and it does scroll to the top.
     

    Attached Files:

    • 1.zip
      File size:
      3.1 KB
      Views:
      85
  6. imbault

    imbault Well-Known Member Licensed User

    Thank you,
    I'm will test your code by filling your textview with the same text of my app (more than yours).
     
  7. imbault

    imbault Well-Known Member Licensed User

    Erel: Put that text in TextView1 the designer, it will not scroll to the top:
     
    Last edited: Mar 28, 2015
  8. Erel

    Erel Administrator Staff Member Licensed User

    It does work here. Tested on iOS 8.
     
  9. imbault

    imbault Well-Known Member Licensed User

    Finally, in my project , I made it works using :
    Code:
    Private Sub Pg_appear
    TextViewCmt.ScrollTo(
    0)
    End Sub
    Thanks a lot, Erel
     
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