Why INSPECT ELEMENT or WEB INSPECTOR or developerExtrasEnabled (WkWebView) is not working in iOS While its working for OSX

谁说胖子不能爱 提交于 2019-12-20 06:27:42

问题


Here is the code snippet that facilitates the INSPECT ELEMENT in WkWebView

preferences.setValue(true, forKey:"developerExtrasEnabled")

Here is the screenshot of INSPECT ELEMENT working in OSX(right click)

Right click is equivalent to Tap & Hold in iOS But I am not able to see anything like I see in OSX

Here is the complete code if anybody wants to try


回答1:


Its not possible to do in iOS as WKPreference is not key value coding-compliant for the key developerExtrasEnabled so we can't do this using this approach.



来源:https://stackoverflow.com/questions/34927983/why-inspect-element-or-web-inspector-or-developerextrasenabled-wkwebview-is-no

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!