     
     func setNav(){
         navigationItem.leftBarButtonItem = UIBarButtonItem(title: "返回", style: .Plain, target: self, action: "disMissVc")
-        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "分享", style: .Plain, target: self, action: "share")
+        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "保存", style: .Plain, target: self, action: "save")
         navigationItem.rightBarButtonItem?.enabled = false
         
     }
-    ///Mark--按钮点击事件
+    ///Mark--导航栏按钮点击事件按钮点击事件
     func disMissVc(){
-        dismissViewControllerAnimated(true) { () -> Void in
-        }
+
+        navigationController?.popViewControllerAnimated(true)
+        
     }
     
     

    lazy var toolBar:UIToolbar = {
        let tlBar = UIToolbar()
        let itemSettings = [["title": "相册", "action": "choosePicture"],
            ["title": "百度"],
            ["title": "语音"],
            ["title": "表情", "action": "inputEmoticon"]]
        var items = [UIBarButtonItem]()
        for dic in itemSettings{


import UIKit
import Social
import SVProgressHUD


class HZNoteController: UIViewController,UITextViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,ZXInputViewDelegate{
    let screenH = UIScreen.mainScreen().bounds.height
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.whiteColor()
