Is there a way to show the scroll indicator of a UITextView without starting to scroll?

I have a UITextView with text that needs to be scrolled to see the full text.

But there are paragraphs between text blocks, and itโ€™s actually not obvious that the text scrolls without starting to scroll so that the scroll indicator becomes visible. This is because emtpy lines between paragraphs are only at the bottom of the visible text in the text view.

While I could insert a few blank lines so that the text block would break, and the user could see that the text was continuing, the problem is that the application will be translated into many languages, and this solution, therefore, is no longer possible. Since all the Thomas need to be checked individually, and for each, blank lines will be inserted in different places.

That's why I ask if there is a way to tell the user that the displayed text will continue if it scrolls down - immediately when the view opens, therefore without clicking on the userโ€™s screen.

Many thanks

+8
ios iphone uitextview
source share
4 answers

Since UITextView is a subclass of UIScrollView, you can use the flashScrollIndicators method. This method flashes scrollView scroll indicators, this is a way to show users that content is scrolling.

+15
source share

You can try the following:

 [yourTextView flashScrollIndicators]; 
+9
source share

I would hide the built-in scroll indicator and implement my own. Just create a custom view that looks like a scroll indicator and define it by scrollOffset UITextView .

+1
source share

There is a solution on this site where you can constantly see your scrollbars. Basically, what you will do is create a category for your UITextView .

Speaking of which, the Apple Human Interfaces Guidelines prevent this, and they provide only a way to scroll through the scroll indicators. This way you can call the flashScrollIndicators method for reasonable points i. e. when the user first gets a ViewController containing you a UITextView .

0
source share

All Articles