简体   繁体   English

iOS8,iOS9 [WKWebViewConfiguration setDataDetectorTypes:crach

[英]iOS8,iOS9 [WKWebViewConfiguration setDataDetectorTypes: crach

When i use wkwebview on iOS8 , iOS9 ,There was a crash 当我在iOS8wkwebview上使用wkwebview时, iOS9了崩溃

theConfiguration.dataDetectorTypes = WKDataDetectorTypeNone;

reason: 原因:

-[WKWebViewConfiguration setDataDetectorTypes:]: unrecognized selector sent to instance 0x126e178d0 callStackSymbols: -[WKWebViewConfiguration setDataDetectorTypes:]:无法识别的选择器发送到实例0x126e178d0 callStackSymbols:

so,how can i solve it???? 那么,我该如何解决呢?

setDataDetectorTypes仅在iOS 10中可用。您必须在代码中添加if #available(iOS 10.0, *) { ... }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM