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


import UIKit
import Social

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

        //如果没有内容就显示占位符
        
        textView.hasText() ? (self.textView.placeHolder = "") :
            (self.textView.placeHolder = "凛冬将至,")
        navigationItem.rightBarButtonItem?.enabled = textView.hasText()
        //重绘 一定要重绘否则不会改变
        self.textView.setNeedsDisplay()
