             make.height.equalTo(44)
         }
         //3.添加按钮
-        let itemSettings = [["imageName": "compose_toolbar_picture"],
+        let itemSettings = [["imageName": "compose_toolbar_picture","actionName":"selectPicture"],
             ["imageName": "compose_mentionbutton_background"],
             ["imageName": "compose_trendbutton_background"],
             ["imageName": "compose_emoticonbutton_background","actionName":"selectEmoticon"],

        
    //4.工具条
    prepareToolbar()
    //输入助理视图 - 当键盘退出时toolBar会消失！
    
    
    }
    
    
    //设置导航栏
    private func prepareNavigationBar(){
    //1.左右按钮

            self.close()
        }
    }
    
    ///选择照片
    @objc private func selectPicture(){
    
    print("选择照片")
    //退掉键盘
        textView.resignFirstResponder()
    //判断如果已经更新了约束，就不再执行后续的代码
        if picturePickerController.view.frame.height > 0 {
        return
        }
        
        
        //1.修改照片选择控制器视图约束
        picturePickerController.view.snp_updateConstraints { (make) -> Void in
            
            make.height.equalTo(view.bounds.height * 0.6)
        }
        //2.重建约束，删除之前所有约束，重新创建
        textView.snp_remakeConstraints { (make) -> Void in
            
            make.top.equalTo(view.snp_top)
            make.left.equalTo(view.snp_left)
            make.right.equalTo(view.snp_right)
            make.bottom.equalTo(picturePickerController.view.snp_bottom)

        }
      //3.动画更新约束
        UIView.animateWithDuration(0.5) { () -> Void in
            
            self.view.layoutIfNeeded()
        }
    
    }
    
    //选择表情
    @objc private func selectEmoticon(){
    //如果使用的是系统键盘 nil
