开发者

How to make an html body transparent for UIWebView

开发者 https://www.devze.com 2023-01-14 19:08 出处:网络
Hii....i am new to iPhone programming..Can anybody help me out please i have an html which is generated by eXe tool.I need to show it on an UIImageView. so the html has to be transpar开发者_Python百科

Hii....i am new to iPhone programming..Can anybody help me out please

i have an html which is generated by eXe tool.I need to show it on an UIImageView. so the html has to be transpar开发者_Python百科ent then the image looks like backround.

is it possible to make that html as transparent..?

Thank u


I just used this, and it worked fine. [UIColor clearColor] and [myWebView setOpaque:NO] are missing the square brackets, though. BTW, you can also set the background style in the html to an rgba value instead of totally transparent if you need, e.g. body { background:rgba(255,255,255,0.6); }


just write this line to become the UIWebView Transparent

[myWebView setOpaque:NO]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号