Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any 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 complete text.

But there are paragraphs between the text blocks and it is not really obvious that the text is scrollable without starting to scroll so that the scroll indicator becomes visible. This is because the emtpy lines between paragraphs are just on the bottom of the visible text within the text view.

While I could insert some empty lines so that a text block gets broken up and the user could see that the text goes on, the issue is that the app will be translated to many languages and this solution is therefore not feasible anymore. Since all languanges would have to be tested individually and for each the empty lines will be inserted at different places.

That's why I am asking, if there is a way to indicate to the user that the shown text continues if he scrolls down - immediately when the view opens - so without the user tapping on the screen.

Many thanks

like image 948
user387184 Avatar asked Aug 21 '12 17:08

user387184


People also ask

What is a scrolling indicator?

Scroll Indicator is basically a line which fills up based on how much the user has scrolled in the page. They are usually positioned at the Top of the page.

How do I make labels scrollable?

Place a panel in location where you want the label to be, set it's AutoScroll property to true. Then place the label in the panel, anchor it and set it's AutoSize property to true. This will make the panel provide the scroll bars if the label's text extends outside of the panel.


1 Answers

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

like image 170
Matthias Bauch Avatar answered Sep 18 '22 15:09

Matthias Bauch