Breaking News
Home / iOS / iOS Snippets / How to make UIWebView background transparent?

How to make UIWebView background transparent?

Answer

At times the UIWebView background needs to be made transparent so that the html content is displayed flushed against the screen background.

For this set the following properties on the UIWebView

[yourView setBackgroundColor:[UIColor clearColor]];
[yourWebView setOpaque:NO];

<!>

[pb_builder]

Check Also

EKCalendar – That account does not allow calendars to be added or removed

Usecase When I am trying to create a new Calendar programmatically using the EventKit API …

Advertisment ad adsense adlogger