Quantcast
Channel: C++博客-所有随笔
Viewing all articles
Browse latest Browse all 7882

转:让UIWebView背景透明

$
0
0
创建:2012.03.22
转:
 I recommend:
webView.opaque = NO;
webView
.backgroundColor = [UIColor clearColor];

(for some reason it didn't work to set those properties via IB) and include this into your HTML code:

<body style="background-color: transparent;">

[自:注意:设置opaque和backgroundColor时不能在XIB中进行,在ios4中,在xib配置将不起作用。不过在ios5中却正常。
后面的html内容根据情况来看,有时候不加也可以的。]


+++++


佳为好友 2012-12-29 11:06 发表评论

Viewing all articles
Browse latest Browse all 7882

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>