Ad-Blocker in UIWebView

末鹿安然 提交于 2019-12-11 06:57:19

问题


From iOS 9Apple start ad-blocker in safari by installing the blocker and use it as described here.

My question is how to use ad-blocker for UIWebView??

I mean if my app has UIWebView and I wanted to block ad-mob in my UIWebView. If it is possible then how achieve this, if not then is there any alternative solution is available.

Already done R&D

I already go through many site and apple doc's I didn't get any source which explains my question.

In apple doc I got NEFilterProvider.

According to apple, NEFilterProvider examines network content as it passes through the network stack on the device and decides if the network content should be blocked or allowed to pass on to its final destination.

But i don't know how to use NEFilterProvider.

If you have any further knowledge please share.

Thanks.

来源:https://stackoverflow.com/questions/42506070/ad-blocker-in-uiwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!