[英]iOS8,iOS9 [WKWebViewConfiguration setDataDetectorTypes: crach
When i use wkwebview
on iOS8
, iOS9
,There was a crash 当我在
iOS8
和wkwebview
上使用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.