0
我試圖在UIWebView中顯示AdSense。像...是否有可能在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];
只有空的空間。 如何顯示它?
請檢查該 https://stackoverflow.com/questions/32582198/load-local-javascript-in-webview 它會幫助你。謝謝。 –