On iOS, How do I override the function loadrequest
in UIWebview
with Swift
language?
I want to use the UIWebview
to load my own page, and I have defined my protocol such as polly://xxx?a=xx
in the page.
I want to process the URL which start with polly://xxx
until the UIWebview
load the URL. In iOS, we all know I should process in function should start load with request if I use the Object-C.
But I don't know how to override the function loadrequest
in UIWebview
with Swift
language. Can someone tell me how to do (please provide code)?
因此,国内外都没有Programe-Master。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.