我的装扮-气泡,公屏消息增加气泡字段

This commit is contained in:
chenguilong
2022-03-19 00:44:11 +08:00
committed by fengshuo
parent b2eb18b3c8
commit e92c37c5eb
18 changed files with 353 additions and 8 deletions

View File

@@ -38,7 +38,10 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,copy) NSString *inRoomNameplateWord;
///贵族icon
@property (nonatomic, copy) NSString *vipIcon;
///安卓房间公屏气泡
@property (nonatomic, copy) NSString *androidBubbleUrl;
///iOS房间公屏气泡
@property (nonatomic, copy) NSString *iosBubbleUrl;
@end
NS_ASSUME_NONNULL_END

View File

@@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface XPRoomMessageTableViewCell : UITableViewCell
@property (nonatomic,strong) NSAttributedString *attributedString;
///气泡url
@property (nonatomic, copy) NSString *bubbleImageUrl;
@end

View File

@@ -9,6 +9,7 @@
///Third
#import <Masonry/Masonry.h>
#import "XPNetImageYYLabel.h"
#import "NetImageView.h"
///Tool
#import "XPMacro.h"
#import "ThemeColor+Room.h"
@@ -18,7 +19,7 @@
@interface XPRoomMessageTableViewCell ()
///
@property (nonatomic,strong) UIImageView *bubbleImageView;
@property (nonatomic,strong) NetImageView *bubbleImageView;
///
@property (nonatomic,strong) XPNetImageYYLabel *contentLabel;
@end
@@ -60,9 +61,14 @@
self.contentLabel.attributedText = attribute;
}
- (UIImageView *)bubbleImageView {
- (void)setBubbleImageUrl:(NSString *)bubbleImageUrl {
_bubbleImageUrl = bubbleImageUrl;
self.bubbleImageView.imageUrl = bubbleImageUrl;
}
- (NetImageView *)bubbleImageView {
if (!_bubbleImageView) {
_bubbleImageView = [[UIImageView alloc] init];
_bubbleImageView = [[NetImageView alloc] init];
_bubbleImageView.userInteractionEnabled = YES;
_bubbleImageView.layer.masksToBounds = YES;
_bubbleImageView.layer.cornerRadius = 7;