ChatEmojiView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // ChatEmojiView.h
  3. // BuguLive
  4. //
  5. // Created by 朱庆彬 on 2017/8/15.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger, ChatEmojiViewIconType) {
  10. ChatEmojiViewIconTypeCommon = 0, //经典表情
  11. ChatEmojiViewIconTypeOther //******************自定义表情:后期版本拓展**********
  12. };
  13. @class EmojiObj;
  14. @protocol ChatEmojiViewDelegate <NSObject>
  15. @required
  16. - (void)chatEmojiViewSelectEmojiIcon:(EmojiObj *)objIcon; //选择了某个表情
  17. - (void)chatEmojiViewTouchUpinsideDeleteButton; //点击了删除表情
  18. - (void)chatEmojiViewTouchDownDeleteButton; //长按删除表情
  19. @optional
  20. - (void)chatEmojiViewTouchUpinsideSendButton; //点击了发送表情
  21. -(void)clickHide;
  22. @end
  23. #define ChatEmojiView_Hight 234.0f //表情View的高度
  24. #define ChatEmojiView_Bottom_H 40.0f
  25. #define ChatEmojiView_Bottom_W 52.0f
  26. @interface ChatEmojiView : UIView
  27. @property (nonatomic, weak) id<ChatEmojiViewDelegate> delegate;
  28. @property (nonatomic, strong) UIView *shadowView;
  29. - (void)show:(UIView *)superView;
  30. - (void)hide;
  31. @end