I have a UIWebView
with some content and I need to make its scroll indicator visible for a short time (like [UIScrollView flashScrollIndicators]
).
Any idea how to do this?
I have a UIWebView
with some content and I need to make its scroll indicator visible for a short time (like [UIScrollView flashScrollIndicators]
).
Any idea how to do this?
There's no real way of doing this via a published API, however I think that in this case it's OK to guess the
UIScrollView
subview, so long as you make sure your application doesn't crash if you can't find theUIScrollView
:EDIT: The above will not work because the first subview of a
UIWebView
is aUIScroller
, not aUIScrollView
(my memory might be playing tricks on me). Perhaps try the following?Starting iOS 5.0 onwards, one can now customize the scrolling behavior of UIWebView by accessing the 'scrollview' property to achieve the desired functionality: