Always shown vertical and horizontal scroll indicator on a uiwebview

1.1k views Asked by At

i get html text and images from web services and load in webview. i need to add scroll indicator for vertical and horizontal scroll bar for view text and images. some of the large text and images user didn't notice full information. shown scroll indicators after finish loading webview

1

There are 1 answers

2
Ankit Kumar On

Starting iOS 5.0 onwards, you can customize the scrolling behavior of UIWebView by accessing the 'scrollview' property to achieve the desired functionality:

Use the scroll view of the webview like this:

[webView.scrollView setShowsHorizontalScrollIndicator:YES]; [webView.scrollView setShowsVerticalScrollIndicator:YES];

You can do one thing that ,use this

  • (void) webViewDidFinishLoad:(UIWebView *)webView){

    [webView.scrollView flashScrollIndicators];
    

    }

can set indicator color as -

webView.scrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;