@@ -55,12 +55,12 @@ - (void)changeMenuView{
5555 CGFloat inputH = inpuntBar.inputViewHeight + inpuntBar.menuViewH ;
5656 inpuntBar.height = inputH;
5757 showType = 1 ;
58+ if (!inpuntBar.onFeatureView ) { return ; }
59+ inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(showType)});
5860 }else {
5961 inpuntBar.height = inpuntBar.inputViewHeight ;
6062 [inpuntBar.inputGrowView becomeFirstResponder ];
6163 }
62- if (!inpuntBar.onFeatureView ) { return ; }
63- inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(showType)});
6464}
6565// 显示ExpressionView
6666- (void )changExpressionView {
@@ -79,15 +79,15 @@ - (void)changExpressionView{
7979 inpuntBar.expressionView .hidden = NO ;
8080 CGFloat inputH = inpuntBar.inputViewHeight + expressionViewH;
8181 inpuntBar.height = inputH;
82- showType = 2 ;
83-
82+ showType = 0 ;
83+ if (!inpuntBar.onFeatureView ) { return ; }
84+ inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(showType)});
8485 }else {
8586 inpuntBar.expressionView .hidden = YES ;
8687 inpuntBar.height = inpuntBar.inputViewHeight ;
8788 [inpuntBar.inputGrowView becomeFirstResponder ];
8889 }
89- if (!inpuntBar.onFeatureView ) { return ; }
90- inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(showType)});
90+
9191}
9292
9393- (void )changeRecordView {
@@ -101,21 +101,22 @@ - (void)changeRecordView{
101101 inpuntBar.recordBtn .hidden = NO ;
102102 inpuntBar.inputGrowView .hidden = YES ;
103103 inpuntBar.toolH = inpuntBar.defaultToolHeight ;
104+ if (!inpuntBar.onFeatureView ) { return ; }
105+ inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(0 )});
104106 }else {
105107 inpuntBar.recordBtn .hidden = YES ;
106108 inpuntBar.inputGrowView .hidden = NO ;
107109 inpuntBar.toolH = inpuntBar.inputViewHeight ;
108110 inpuntBar.height = inpuntBar.inputViewHeight ;
109111 [inpuntBar.inputGrowView becomeFirstResponder ];
110112 }
111- if (!inpuntBar.onFeatureView ) { return ; }
112- inpuntBar.onFeatureView (@{@" inputHeight" :@(inpuntBar.height ),@" showType" :@(0 )});
113+
113114}
114115
115116#pragma mark -- DWIputBarDelegate
116117// 点击按钮
117118- (void )inputBarClickBtn : (UIButton *)btn {
118- NSLog (@" %zd " ,btn.tag );
119+ NSLog (@" ~inputBarClickBtn: %zd " ,btn.tag );
119120 switch (btn.tag ) {
120121 case DWInputBarControlBtnTypeRecord:
121122 {
0 commit comments