글
웹뷰는 기본으로 흰색 백그라운드이다.
찾아본 결과
http://stackoverflow.com/questions/3616678/showing-webview-with-transparent-background
내용
답
Yes, try this:
찾아본 결과
http://stackoverflow.com/questions/3616678/showing-webview-with-transparent-background
내용
showing webview with transparent background
I am displaying some graph from a link in webview.
My requirement is : I want to show graph with changed background color.
One way is to change the color in html/php code.
The other way I thought is to take the web view within NSBox and fill NSBox with required color, but it is not working as I require. It is showing graph with white background color in web view and NSBox with filled color around it.
Is there any way by which I can make background of WebView transparent so that it shows the color of box in which it is contained as background color of graph?
Thanks,
Miraaj답
Yes, try this:
[myWebView setOpaque:NO];
[myWebView setBackgroundColor:[UIColor clearColor]];
'아이폰' 카테고리의 다른 글
In App Purchase 개발 (0) | 2012.03.06 |
---|---|
Xcode webview set background color clearcolor(웹뷰 백그라운드 클리어 투명하게) (0) | 2012.02.28 |
잘 나가다가 Xcdoe4는 요런 메세지를 내면서 에러가 발생 (0) | 2012.02.28 |
xcode 홈 버튼 클릭 프로그램 종료시 메모리 해제 (0) | 2012.02.24 |
caanimation starting point 에서 잠시보이는현상 (0) | 2012.02.06 |
RECENT COMMENT