2
0

WFCPrivacyViewController.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #import "WFCConfig.h"
  11. @interface WFCPrivacyViewController ()
  12. @property(nonatomic, strong)WKWebView *webview;
  13. @end
  14. @implementation WFCPrivacyViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // Do any additional setup after loading the view.
  18. self.webview = [[WKWebView alloc] initWithFrame:self.view.bounds];
  19. NSString *path;
  20. if (self.isPrivacy) {
  21. path = USER_PRIVACY_URL;
  22. } else {
  23. path = USER_AGREEMENT_URL;
  24. }
  25. [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:path]]];
  26. [self.view addSubview:self.webview];
  27. }
  28. /*
  29. #pragma mark - Navigation
  30. // In a storyboard-based application, you will often want to do a little preparation before navigation
  31. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  32. // Get the new view controller using [segue destinationViewController].
  33. // Pass the selected object to the new view controller.
  34. }
  35. */
  36. @end