【问题标题】:MonoMac WebView - Show Console or Web Inspector?MonoMac WebView - 显示控制台或 Web 检查器?
【发布时间】:2013-03-20 20:27:59
【问题描述】:

试图弄清楚如何在 MonoMac 应用程序中显示 webkit 控制台或检查器。看起来可以通过设置 WebKitDeveloperExtras 在 Objective-C 中完成。

[USER_DEFAULTS registerDefaults:[NSDictionary dictionaryWithObject: 
[NSNumber numberWithBool:YES] forKey:@"WebKitDeveloperExtras"]];

如何在 MonoMac.WebKit.WebView 中设置 WebDeveloperExtras?

【问题讨论】:

    标签: c# webview xamarin monomac


    【解决方案1】:

    试试这个:

    var defaults = NSUserDefaults.StandardUserDefaults;
    defaults.SetBool (true, "WebKitDeveloperExtras");
    defaults.Synchronize();
    

    【讨论】:

      猜你喜欢
      • 2020-07-15
      • 1970-01-01
      • 1970-01-01
      • 2013-01-30
      • 2020-07-12
      • 2016-06-25
      • 2017-05-19
      • 2020-04-16
      • 1970-01-01
      相关资源
      最近更新 更多