佳为好友

转:让UIWebView背景透明

创建: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内容根据情况来看,有时候不加也可以的。]


+++++

posted on 2012-12-29 11:06 佳为好友 阅读(133) 评论(0)  编辑 收藏 引用 所属分类: UI


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

<2012年12月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

留言簿(1)

随笔分类

搜索

最新评论

评论排行榜