reza_khalafi reza_khalafi - 1 year ago 235
iOS Question

How to change background color of UIWebBrowserView in UIWebView in iOS8 Objective C

I wanna change UIColor of UIWebBrowserView in web view in iOS8 Objective C.

Please help me.

Thank you.

Answer Source

plz use this code

UIWebView * webView_article = [[UIWebView alloc]    initWithFrame:CGRectMake(0, 0, 200, 400)];
     webView_article.backgroundColor =yourClolor;

    webView_article.scrollView.bounces = NO;
    webView_article.scrollView.showsVerticalScrollIndicator = NO;
    webView_article.scrollView.delaysContentTouches = NO;
    webView_article.scrollView.delegate = self;
    [webView_article setTag:11];
    [webView_article setOpaque:NO];

you have to set setOpaque to No

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download