WFCUBrowserViewController.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // BrowserViewController.m
  3. // WildFireChat
  4. //
  5. // Created by heavyrain.lee on 2018/5/15.
  6. // Copyright © 2018 WildFireChat. All rights reserved.
  7. //
  8. #import <WebKit/WebKit.h>
  9. #import "WFCUBrowserViewController.h"
  10. @interface WFCUBrowserViewController ()
  11. @property (nonatomic, strong)WKWebView *webView;
  12. @end
  13. @implementation WFCUBrowserViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view.
  17. self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds];
  18. [self.view addSubview:self.webView];
  19. [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
  20. }
  21. - (void)didReceiveMemoryWarning {
  22. [super didReceiveMemoryWarning];
  23. // Dispose of any resources that can be recreated.
  24. }
  25. /*
  26. #pragma mark - Navigation
  27. // In a storyboard-based application, you will often want to do a little preparation before navigation
  28. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  29. // Get the new view controller using [segue destinationViewController].
  30. // Pass the selected object to the new view controller.
  31. }
  32. */
  33. @end