 
     // MARK: - Web view delegate
 
-    func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
-        loadController.state = .Loaded
-    }
-
-    func webView(webView: WKWebView, didFailNavigation navigation: WKNavigation!, withError error: NSError) {
+    func webView(webView: UIWebView, didFailLoadWithError error: NSError?) {
         loadController.state = LoadState.failed(error)
     }
 
-    func webView(webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: NSError) {
-        loadController.state = LoadState.failed(error)
+    func webViewDidFinishLoad(webView: UIWebView) {
+        loadController.state = .Loaded
     }
-
 }
        fatalError("init(coder:) has not been implemented")
    }

    override func loadView() {
        super.loadView()
        print("foo")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        view.addSubview(webView)
        webView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(view)
            make.bottom.equalTo(view)
            make.trailing.equalTo(view)
            make.leading.equalTo(view)
        }
//        self.view = webView

//        webView.navigationDelegate = self
//        loadController.setupInController(self, contentView: webView)
//        view.alpha = 1.0
        view.backgroundColor = UIColor.yellowColor() //OEXStyles.sharedStyles().standardBackgroundColor()

        title = Strings.Certificates.viewCertTitle
        loadController.state = .Initial

//

import Foundation

class CertificateViewController: UIViewController, UIWebViewDelegate {

    typealias Environment = protocol<OEXAnalyticsProvider>
    private let environment: Environment
