1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // WFCPrivacyViewController.m
- // WildFireChat
- //
- // Created by WF Chat on 2019/1/22.
- // Copyright © 2019 WildFireChat. All rights reserved.
- //
- #import "WFCPrivacyViewController.h"
- #import <WebKit/WebKit.h>
- #import "WFCConfig.h"
- @interface WFCPrivacyViewController ()
- @property(nonatomic, strong)WKWebView *webview;
- @end
- @implementation WFCPrivacyViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- self.webview = [[WKWebView alloc] initWithFrame:self.view.bounds];
-
- NSString *path;
- if (self.isPrivacy) {
- path = USER_PRIVACY_URL;
- } else {
- path = USER_AGREEMENT_URL;
- }
-
- [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:path]]];
-
-
- [self.view addSubview:self.webview];
- }
- /*
- #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
|