MOLiveMsgTextCell.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // MOLiveMsgTextCell.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2025/6/9.
  6. //
  7. #define MOLiveMsgTextCell_ID @"MOLiveMsgTextCell_ID" //复用id
  8. #import <UIKit/UIKit.h>
  9. #import <YYKit/YYLabel.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface MOLiveMsgTextCell : UITableViewCell
  12. @property (nonatomic, strong) UIView *bgView;
  13. @property (nonatomic, strong) UIImageView *bubbleImgView;
  14. @property (nonatomic, strong) YYLabel *titleLab;
  15. @property (nonatomic, strong) MOMsgContentTextView *contentTextView;
  16. @property (nonatomic, strong) MORtmEntity *cellModel;
  17. @property (nonatomic, assign) BOOL isWhiteList;
  18. /** 气泡的点击手势(可以根据需要将这个手势从视图中移除或禁止) */
  19. @property (nonatomic, strong, readonly) UITapGestureRecognizer *bubbleTapGestureRecognizer;
  20. /** 气泡的长按手势(可以根据需要将这个手势从视图中移除或禁止) */
  21. @property (nonatomic, strong, readonly) UILongPressGestureRecognizer *bubbleLongPressGestureRecognizer;
  22. /** cell 单击事件 */
  23. @property (nonatomic, copy) void(^cellTapBlock)(MORtmEntity *cellModel);
  24. /** cell 长按事件 */
  25. @property (nonatomic, copy) void(^cellLongPressBlock)(MORtmEntity *cellModel);
  26. /** 刷新当前Cell */
  27. @property (nonatomic, copy) void(^toRefreshTheCell) (MORtmEntity *cellModel);
  28. @end
  29. NS_ASSUME_NONNULL_END