1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // JXFriendHeadView.m
- // shiku_im
- //
- // Created by 123 on 2020/5/7.
- // Copyright © 2020 Reese. All rights reserved.
- //
- #import "JXFriendHeadView.h"
- @interface JXFriendHeadView()
- @property (nonatomic,weak) UILabel *titleL;
- @end
- @implementation JXFriendHeadView
- -(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
-
- if (self=[super initWithReuseIdentifier:reuseIdentifier]) {
- self.contentView.backgroundColor=THEMEBACKCOLOR;
-
- UILabel *labeL=[[UILabel alloc]init];
- labeL.textColor=kRGBColor151;
- labeL.font=[UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
- [self.contentView addSubview:labeL];
- self.titleL=labeL;
- }
- return self;
- }
- -(void)layoutSubviews{
- [super layoutSubviews];
- self.titleL.frame=CGRectMake(15, 0, self.frame.size.width-30, self.frame.size.height);
- }
- -(void)setStrURL:(NSString *)strURL{
- _strURL=strURL;
- self.titleL.text=[NSString stringWithFormat:@"%@",strURL];
- }
- @end
|