// // BrowserViewController.m // WildFireChat // // Created by heavyrain.lee on 2018/5/15. // Copyright © 2018 WildFireChat. All rights reserved. // #import #import "WFCUBrowserViewController.h" @interface WFCUBrowserViewController () @property (nonatomic, strong)WKWebView *webView; @end @implementation WFCUBrowserViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:self.webView]; [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end