Hey,
my UIWebView does not load the website anymore. Yesterday everything worked very well and now after I updated XCode it doesn't show the URL anymore...
Do you know what the reason could be? I really have no idea :/
Thanks
Hey,
my UIWebView does not load the website anymore. Yesterday everything worked very well and now after I updated XCode it doesn't show the URL anymore...
Do you know what the reason could be? I really have no idea :/
Thanks
Display the reason that the UIWebView instance didn't load:
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
NSLog (@"webView:didFailLoadWithError");
[activityIndicator stopAnimating];
if (error != NULL) {
UIAlertView *errorAlert = [[UIAlertView alloc]
initWithTitle: @"Connection Problem"
message: [error localizedDescription]
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[errorAlert show];
[errorAlert release];
}
}
It's probably that you are using http: URL's, and Application Transport Security in iOS 9 requires https: (with TLS 1.2 or later) unless you explicitly make an exception.
If your app doesn't exchange any data worthy of TLS security in the UIWebView, then you can edit your app's Info.plist, add the App Transport Security Settings dictionary, and then add the Allow Arbitrary Loads boolean (set to YES) within that dictionary. Otherwise, make sure you access your web server over https: using TLS 1.2 or later (with a real, CA-verifiable certificate).