 
                     delegate?.foursquareAuthViewControllerDidSucceed(accessToken)
 
-                    UIApplication.sharedApplication().networkActivityIndicatorVisible = false
                     dismissViewControllerAnimated(true, completion: nil)
 
                     decisionHandler(WKNavigationActionPolicy.Cancel)



    // MARK: - WKWebView delegate

    func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void) {


        self.webview?.loadRequest(NSURLRequest(URL: NSURL(string: authUrlString as String)!))
    }

    override func viewDidDisappear(animated: Bool) {
        UIApplication.sharedApplication().networkActivityIndicatorVisible = false
    }


    // MARK: - Private methods

