Files
featherVoice/QXLive/Message(音信)/View/QXChatTitleView.m
2025-08-08 10:49:36 +08:00

41 lines
1.2 KiB
Objective-C

//
// QXChatTitleView.m
// QXLive
//
// Created by 启星 on 2025/5/22.
//
#import "QXChatTitleView.h"
@interface QXChatTitleView()
@end
@implementation QXChatTitleView
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self initSubviews];
}
return self;
}
-(void)initSubviews{
self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"user_header_placehoulder"]];
[self.imageView addRoundedCornersWithRadius:20];
self.imageView.frame = CGRectMake(0, 2, 40, 40);
self.imageView.contentMode = UIViewContentModeScaleAspectFill;
[self addSubview:self.imageView];
self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.imageView.right+8, 0, self.width-self.imageView.right-8, 40)];
self.nameLabel.textColor = QXConfig.textColor;
self.nameLabel.font = [UIFont boldSystemFontOfSize:16];
[self addSubview:self.nameLabel];
// self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.imageView.right+8, self.height-18, self.width-self.imageView.right-8, 18)];
// self.timeLabel.textColor = RGB16(0x999999);
// self.timeLabel.font = [UIFont boldSystemFontOfSize:12];
// [self addSubview:self.timeLabel];
}
@end