我的装扮-气泡,公屏消息增加气泡字段
This commit is contained in:
@@ -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
|
||||
|
@@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@interface XPRoomMessageTableViewCell : UITableViewCell
|
||||
|
||||
@property (nonatomic,strong) NSAttributedString *attributedString;
|
||||
///气泡url
|
||||
@property (nonatomic, copy) NSString *bubbleImageUrl;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user