【发布时间】:2017-06-02 18:51:46
【问题描述】:
我尝试在 UIWebView 中显示 adsense。喜欢...
NSString *test = @"
<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'>
</script>
<ins class='adsbygoogle'
style='display:inline-block;width:300px;height:250px'
data-ad-client='ca-pub--------------'
data-ad-slot='-------'>
</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
"
[webView loadHTMLString:test baseURL:nil];
只有空的空间。 如何显示?
【问题讨论】:
-
请检查这个stackoverflow.com/questions/32582198/…它会帮助你。谢谢。