I have a problem in loading in my web view This is my code:
NSString *urlString = @"https://www.google.com.eg";
// NSString *urlString = @"http://fatima.ibtdi.work";
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];
[_fatimaView loadRequest:urlRequest];}
It works on Google but doesn't work on the another link.
Add this to your plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Looks like you need to add some App Transport Security Settings to your Info plist try this
Any HTTP loading in a web view will require adding the domain to these settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With