TUIInputController Class Reference

Inherits from UIViewController
Declared in TUIInputController.h
TUIInputController.m

Overview

【模块名称】TUIInputController 【功能说明】TUI 输入控制器,实现了输入条中进一步的业务逻辑。 在输入条(TUIInputBar)中,提供了表情、语音、更多视图的按钮和响应回调。 而在本类中,将 InputBar 与上述三个视图实际结合,实现了各个视图的显示与切换的逻辑。

Other Methods

– viewDidLoad

- (void)viewDidLoad

– viewWillAppear:

- (void)viewWillAppear:(BOOL)animated

– viewDidDisappear:

- (void)viewDidDisappear:(BOOL)animated

– setupViews

- (void)setupViews

– keyboardWillHide:

- (void)keyboardWillHide:(NSNotification *)notification

– keyboardWillShow:

- (void)keyboardWillShow:(NSNotification *)notification

– keyboardWillChangeFrame:

- (void)keyboardWillChangeFrame:(NSNotification *)notification

– hideFaceAnimation

- (void)hideFaceAnimation

– showFaceAnimation

- (void)showFaceAnimation

– hideMoreAnimation

- (void)hideMoreAnimation

– showMoreAnimation

- (void)showMoreAnimation

– inputBarDidTouchVoice:

- (void)inputBarDidTouchVoice:(TUIInputBar *)textView

– inputBarDidTouchMore:

- (void)inputBarDidTouchMore:(TUIInputBar *)textView

– inputBarDidTouchFace:

- (void)inputBarDidTouchFace:(TUIInputBar *)textView

– inputBarDidTouchKeyboard:

- (void)inputBarDidTouchKeyboard:(TUIInputBar *)textView

– inputBar:didChangeInputHeight:

- (void)inputBar:(TUIInputBar *)textView didChangeInputHeight:(CGFloat)offset

– inputBar:didSendText:

- (void)inputBar:(TUIInputBar *)textView didSendText:(NSString *)text

– inputBar:didSendVoice:

- (void)inputBar:(TUIInputBar *)textView didSendVoice:(NSString *)path

– reset

重置当前输入控制器。 如果当前有表情视图或者“更多“视图正在显示,则收起相应视图,并将当前状态设置为 Input_Status_Input。 即无论当前 InputController 处于何种状态,都将其重置为初始化后的状态。

- (void)reset

Declared In

TUIInputController.h

– menuView:didSelectItemAtIndex:

- (void)menuView:(TUIMenuView *)menuView didSelectItemAtIndex:(NSInteger)index

– menuViewDidSendMessage:

- (void)menuViewDidSendMessage:(TUIMenuView *)menuView

– faceView:scrollToFaceGroupIndex:

- (void)faceView:(TUIFaceView *)faceView scrollToFaceGroupIndex:(NSInteger)index

– faceViewDidBackDelete:

- (void)faceViewDidBackDelete:(TUIFaceView *)faceView

– faceView:didSelectItemAtIndexPath:

- (void)faceView:(TUIFaceView *)faceView didSelectItemAtIndexPath:(NSIndexPath *)indexPath

– moreView:didSelectMoreCell:

- (void)moreView:(TUIMoreView *)moreView didSelectMoreCell:(TUIInputMoreCell *)cell

– faceView

表情视图 表情视图一般在点击“笑脸”按钮后浮现。负责显示各个表情分组,与分组内表情的具体信息。 详细信息请参考 Section\Chat\TUIFaceView.h

- (TUIFaceView *)faceView

Declared In

TUIInputController.h

– moreView

更多视图 更多视图一般在点击“更多“按钮(”+“按钮)后浮现,负责显示各个更多单元,比如拍摄、视频、文件、相册等。 详细信息请参考 Section\Chat\TUIMoreView.h

- (TUIMoreView *)moreView

Declared In

TUIInputController.h

– menuView

菜单视图 菜单视图位于表情视图下方,负责提供表情分组单元以及发送按钮。 详细信息请参考 Section\Chat\TUIMenuView.h

- (TUIMenuView *)menuView

Declared In

TUIInputController.h

Other Methods

  inputBar

输入条 输入条中包含文本输入框、语音按钮、“更多”按钮、表情按钮等一系列交互组件,并提供了这些组件的对应回调委托。 详细信息请参考 Section\Chat\Input\TUIInputBar.h

@property (nonatomic, strong) TUIInputBar *inputBar

Declared In

TUIInputController.h

  delegate

实现 TInputControllerDelegate 协议的委托。

@property (nonatomic, weak) id<TInputControllerDelegate> delegate

Declared In

TUIInputController.h

Extension Methods

  status

@property (nonatomic, assign) InputStatus status