Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How display scroll-bar for UITextView always?

UITextView seems to display scroll bars just under the following conditions:-
1. The contents of view is more than View can display
2. User scrolls the UITextView

Is this right? Is there any smart way to display scroll-bar anytime?

like image 622
Captain Kidd Avatar asked Dec 15 '09 15:12

Captain Kidd


1 Answers

[textView flashScrollIndicators];

UITextView is a subclass of UIScrollView. So there is a method flashScrollIndicators that you can call to prompts the user that the view is scrollable. It only flashes once for few seconds where user comes to a page that contains UIScrollView or its subclass. You may set timer to call this method more than one time.

like image 175
Vaibhav Saran Avatar answered Nov 13 '22 13:11

Vaibhav Saran