Swift IOS Webview open\u非基本Url时为空

Swift IOS Webview open\u非基本Url时为空,swift,xcode,webview,Swift,Xcode,Webview,我为我的系统获得了这个webview,但是当Url不是基本Url时,我需要打开空白。 有人能帮我吗 #导入“ViewController.h” @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typicall

我为我的系统获得了这个webview,但是当Url不是基本Url时,我需要打开空白。 有人能帮我吗

#导入“ViewController.h”

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    webURL=@"https://website.com";
    
    NSURL *url = [NSURL URLWithString:webURL];
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    [webView loadRequest:requestObj];
}
-(void) viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
}

-(void)webViewDidFinishLoad:(UIWebView *)webView
{
    [acitvityLoader stopAnimating];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end