// // YOUPAINIMInputToolBar.h // NIMKit // // Created by chris. // Copyright (c) 2015年 NetEase. All rights reserved. // #import typedef NS_ENUM(NSInteger,NIMInputStatus) { NIMInputStatusText, NIMInputStatusAudio, NIMInputStatusEmoticon, NIMInputStatusMore }; @protocol NIMInputToolBarDelegate @optional - (BOOL)textViewShouldBeginEditing; - (void)textViewDidEndEditing; - (BOOL)youpaifshouldChangeTextInRange:(NSRange)range replacementText:(NSString *)replacementText; - (void)textViewDidChange; - (void)youpaiftoolBarWillChangeHeight:(CGFloat)height; - (void)youpaiftoolBarDidChangeHeight:(CGFloat)height; @end @interface YOUPAINIMInputToolBar : UIView @property (nonatomic,strong) UIButton *recordBtn; //@property (nonatomic,strong) UIButton *cameraBtn; @property (nonatomic,strong) UIButton *photoBtn; @property (nonatomic,strong) UIButton *emoticonBtn; @property (nonatomic,strong) UIButton *giftBtn; @property (nonatomic,strong) UIButton *videoBtn; @property (nonatomic,strong) UIButton *sayHiBtn; @property (nonatomic,strong) UIButton *voiceBtn; @property (nonatomic,strong) UIButton *moreMediaBtn; @property (nonatomic,strong) UIButton *recordButton; @property (nonatomic,strong) UIImageView *inputTextBkgImage; @property (nonatomic,strong) UIView *bottomSep; @property (nonatomic,copy) NSString *contentText; @property (nonatomic,weak) id delegate; @property (nonatomic,assign) BOOL showsKeyboard; @property (nonatomic,assign) NSArray *inputBarItemTypes; @property (nonatomic,assign) NSInteger maxNumberOfInputLines; - (void)update:(NIMInputStatus)status; @end @interface YOUPAINIMInputToolBar(InputText) - (NSRange)selectedRange; - (void)setPlaceHolder:(NSString *)placeHolder; - (void)insertText:(NSString *)text; - (void)deleteText:(NSRange)range; @end