a mechanism of transparently invoking Objective-C
2016-08-23
0 0 0
no vote
Other
Earn points
KPWebViewInterceptor - a mechanism of transparently invoking Objective-C ViewControllers from Javascript running within a UIWebView.
A mechanism of transparently invoking Objective-C ViewControllers from Javascript running within a UIWebView.
KPWebViewInterceptor is a class that sits between your UIWebView and your ViewController. As the WebView processes a request KPWebViewInterceptor intercepts it, interrogates it, and if it finds that the request is an attempt to invoke your ViewController, it will automatically produce a suitable NSInvocation, build a selector and send that message to your ViewController. If the request isn't an invocation attempt it'll delegate the responsibility to your ViewController.
objective-c
javascript
运行
调用
透明
机制
Related Source Codes
JavaScript makes a 12 hour clock
0
0
no vote
AT24C16 Soft IIC Driver
0
0
no vote
751.js
0
0
no vote
Camera scanning Library
0
1
no vote
A new concept javascript framework
0
0
no vote
No comment