     rightBarButton.setFAIcon(.FAEdit, iconSize: 22)
     
     let req = NSURLRequest(URL: NSURL(string: localHtml)!)
+    webView.delegate = self;
     webView.loadRequest(req)
-    loadApi()
   }
   
   override func didReceiveMemoryWarning() {

import UIKit
import SVProgressHUD

class PreviewViewController: UIViewController {
  var postNumber:Int!
  let localHtml = NSBundle.mainBundle().pathForResource("md", ofType: "html")!
  

    }
  }
  
  func webViewDidFinishLoad(webView: UIWebView) {
    loadApi()
  }
}
