| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- //
- // MOLiveMsgBaseCell.h
- // MiMoLive
- //
- // Created by SuperC on 2023/11/19.
- //
- #define MOLiveMsgBaseCell_ID @"MOLiveMsgBaseCell_ID" //复用id
- //消息文本的宽度 8.0为背景左间距 104.0为背景右间距 5.0为自身距离背景视图的左右间距
- #define MOLiveMsgLeftSpacing 8.0
- #define MOLiveMsgRightSpacing 104.0
- #define MOBgViewMaxWidth (SCREENWIDTH - MOLiveMsgLeftSpacing - MOLiveMsgRightSpacing - MOContentOffSet * 2.0)
- #define MOBgViewMinWidth 30.0
- #define MOBgViewOffSet 2.0 //背景View上下间距
- #define MOContentOffSet 2.0 //内容View上下间距
- #define MOContentLeftAndRighSpacing 0.0 //内容左右间距
- #define MOContentBaseLeftSpacing 8.0
- #define MOContentBaseRightSpacing 4.0
- #define MOContentBaseTopSpcing 4.0
- #define MOContentBaseBottomSpcing 3.0
- #define MONormalBlueFixSpacing 4.0
- #define MONormalBgViewColor [MOTools colorWithHexString:@"#000000" alpha:0.2]
- #define MORtmCellMixHeight 28.0 //Rtm最小高度
- #define MORtmContentMixHeight 20.0 //Rtm最小高度
- #import <UIKit/UIKit.h>
- #import "MOMsgContentTextView.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface MOLiveMsgBaseCell : UITableViewCell
- @property (nonatomic, strong) UIView *bgView;
- @property (nonatomic, strong) UIImageView *bubbleImgView;
- @property (nonatomic, strong) MOMsgContentTextView *contentTextView;
- @property (nonatomic, strong) MORtmEntity *cellModel;
- /** 气泡的点击手势(可以根据需要将这个手势从视图中移除或禁止) */
- @property (nonatomic, strong, readonly) UITapGestureRecognizer *bubbleTapGestureRecognizer;
- /** 气泡的长按手势(可以根据需要将这个手势从视图中移除或禁止) */
- @property (nonatomic, strong, readonly) UILongPressGestureRecognizer *bubbleLongPressGestureRecognizer;
- /** cell 单击事件 */
- @property (nonatomic, copy) void(^cellTapBlock)(MORtmEntity *cellModel);
- /** cell 长按事件 */
- @property (nonatomic, copy) void(^cellLongPressBlock)(MORtmEntity *cellModel);
- @end
- NS_ASSUME_NONNULL_END
|