I am working on xcode 8 beta and getting below error and not able to resolve.
Cannot invoke 'performSelector' with an argument list of type '(String)'
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
}
webToNativeCall? Why not just call the function directly onself? You shouldn't needperformSelectorfor that - JAL