reza_khalafi reza_khalafi - 26 days ago 7
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.


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