MORedEnvelopeCell.h 1.1 KB

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