My scroll view scrolls down extra… what could be the possible reason?
It works fine in first go but when I edit my textfield in the scrollview, it starts scrolling extra down. Any clue?
My scroll view scrolls down extra… what could be the possible reason? It works
Share
After editing the text in the TextView, you will have to update the content size of the ScrollView accordingly. For instance, if the ScrollView contains only the contents of the TextView:
If the ScrollView manages more than just the TextView, you will have to update the scrollview’s contentsize by doing calculations after you get the contentsize of the textview.