iOS【动态修改第三方类方法】

#import "WKWebViewJavascriptBridge+ReplaceMethod.h"

@implementation WKWebViewJavascriptBridge (ReplaceMethod)

- (void)webView:(WKWebView *)webView
decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
    
    
    WKWebView *tempWeb;
    id _tempWebViewDelegate;
    WebViewJavascriptBridgeBase *_tempBase;
    
    unsigned int count = 0;
    Ivar *ivar = class_copyIvarList([self class], &count);
    for (int i = 0; i

你可能感兴趣的:(iOS【动态修改第三方类方法】)