Open
Description
openedon Jul 10, 2017
Hi.
Brief steps to reproduce the issue:
- Load html page using loadHtmlString.
- Call evaluateJavaScript with [NSString stringWithFormat:@"window.location.href"] parameter.
For instance:
- (void)webViewDidFinishLoad:(UIWebView *)webView {
// the line below will cause exception
[self.webView evaluateJavaScript:[NSString stringWithFormat:@"window.location.href"] completionHandler:^(id result, NSError *error) {
NSLog(@"finish: %@", result);
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment