1234567891011121314151617181920212223242526272829303132 |
- //
- // IHPrivacyVCtr.swift
- // Inhealth
- //
- // Created by weclouds on 2020/1/16.
- // Copyright © 2020 weclouds. All rights reserved.
- //
- import UIKit
- import WebKit
- class IHPrivacyVCtr: UIViewController {
- override func viewDidLoad() {
- super.viewDidLoad()
- self.view.backgroundColor = .white
- self.navigationBarTitle = "隐私协议"
- let backItem = UIBarButtonItem(image: UIImage(named: "quxiao-4"), style: .done, target: self, action: #selector(backAction))
- self.navigationItem.leftBarButtonItem = backItem
- let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height))
- let path = Bundle.main.path(forResource: "PrivacyPolicy", ofType: "docx")
- log.debug("path - \(path)")
- let url = URL(fileURLWithPath: path!)
- webView.load(URLRequest(url: url))
- self.view.addSubview(webView)
- }
-
- @objc func backAction() {
- self.dismiss(animated: true, completion: nil)
- }
- }
|