我正在处理xcode 8 beta并且遇到错误而无法解决。
无法调用' performSelector
'使用类型'(字符串)'
func webView(WebViewNews: UIWebView!, shouldStartLoadWithRequest request: NSURLRequest!, navigationType: UIWebViewNavigationType) -> Bool {
if request.URL!.absoluteString.hasPrefix("ios:") {
// Call the given selector
self.performSelector("webToNativeCall")
// Cancel the location change
return false
}
return true
}
答案 0 :(得分:2)
OpenKey()
已重命名为performSelector
:
perform(_ aSelector:)