WKWebView does not load https URL?

前端 未结 6 569
予麋鹿
予麋鹿 2021-02-07 00:16

I have a WKWebView which should load the following url:

https://buchung.salonmeister.de/place/#offer-details-page?id=907599&venueId=301655

6条回答
  •  心在旅途
    2021-02-07 00:56

    // Add plist file 
    
    NSAllowsArbitraryLoads
    
    NSExceptionDomains
    
        google.com
        
            NSExceptionAllowsInsecureHTTPLoads
            
            NSIncludesSubdomains
            
        
    
    

    if WKWebView not support then declare .m file below code:

    @interface WebScannerViewController()
    {
    
     WKWebView *webView;
    
    }
    
    
    @end
    
    
    
    @implementation WebScannerViewController
    
     - (void)viewDidLoad   {
    
        [super viewDidLoad];
        webView.hidden=YES;
    
        webView.UIDelegate = self;
        webView.navigationDelegate = self;
        self.loadingSign.hidden = NO;
    
    
            webView.frame=CGRectMake(0, 94, Width, Height-128);
        }
    

提交回复
热议问题