WFCPrivacyViewController.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // WFCPrivacyViewController.m
  3. // WildFireChat
  4. //
  5. // Created by WF Chat on 2019/1/22.
  6. // Copyright © 2019 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCPrivacyViewController.h"
  9. #import <WebKit/WebKit.h>
  10. @interface WFCPrivacyViewController ()
  11. @property(nonatomic, strong)WKWebView *webview;
  12. @end
  13. @implementation WFCPrivacyViewController
  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. NSString *path;
  19. if (self.isPrivacy) {
  20. path = @"http://www.wildfirechat.cn/firechat_user_privacy.html";
  21. } else {
  22. path = @"http://www.wildfirechat.cn/firechat_user_agreement.html";
  23. }
  24. [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:path]]];
  25. [self.view addSubview:self.webview];
  26. }
  27. /*
  28. #pragma mark - Navigation
  29. // In a storyboard-based application, you will often want to do a little preparation before navigation
  30. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  31. // Get the new view controller using [segue destinationViewController].
  32. // Pass the selected object to the new view controller.
  33. }
  34. */
  35. @end