×

WKWebView DEBUG

doorxp doorxp 发表于2019-09-05 12:04:20 浏览3965 评论0

抢沙发发表评论

#ifdef DEBUG

  SEL sel = NSSelectorFromString(@"_enableRemoteInspector");

  id cls = NSClassFromString(@"WebView");

  IMP imp = [cls sel];

  void (*func)(id, SEL) = (void *)imp;

  func(cls, sel);

#endif


add to 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions


群贤毕至

访客