CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | Obj-CObjective C |
| License | BSD |
| ReleasedLast Release | May 2016 |
Maintained by Wutian.
| Depends on: | |
| JSONKit-NoWarning | ~> 1.2 |
| UIView+Positioning | ~> 1.1 |
| NSDictionary+Accessors | ~> 1.0 |
WBWebViewConsole is an In-App debug console for your UIWebView && WKWebView
WBWebViewConsole is available on CocoaPods. Just add the following to your project Podfile:
pod 'WBWebViewConsole', '~> 1.0'
Bugs are first fixed in master and then made available via a designated release. If you tend to live on the bleeding edge, you can use WBWebViewConsole from master with the following Podfile entry:
pod 'WBWebViewConsole', :git => 'https://github.com/Naituw/WBWebViewConsole.git'
UIWebView or WKWebView subclass, and implement all methods in WBWebView protocolJSBridge and console when WebView initsUIWebView, inject userScript as early as possible after page loading. Otherwise, just use WKUserScript to implement.UIWebView's webView:shouldStartLoadWithRequest:navigationType or WKWebView's webView:decidePolicyForNavigationAction:decisionHandler
-[JSBridge handleWebViewRequest:] and use the return value to decide whether the navigation should startWBWebViewConsole to manage all messages
addMessage:type:level:source:
clearMessage
sendMessage
storeCurrentSelectedElementToJavaScriptVariable:completion:
WBWebDebugConsoleViewController to display a WBWebViewConsole
initWithConsole:
setInitialCommand:
WBWebViewConsole is BSD-licensed. see the LICENSE file.
The files in the /Examples directory are licensed under a separate license as specified in Examples/README.md.