12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // YOUPAINIMInputToolBar.h
- // NIMKit
- //
- // Created by chris.
- // Copyright (c) 2015年 NetEase. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger,NIMInputStatus)
- {
- NIMInputStatusText,
- NIMInputStatusAudio,
- NIMInputStatusEmoticon,
- NIMInputStatusMore
- };
- @protocol NIMInputToolBarDelegate <NSObject>
- @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<NIMInputToolBarDelegate> 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
|