JXFriendHeadView.m 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // JXFriendHeadView.m
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/7.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXFriendHeadView.h"
  9. @interface JXFriendHeadView()
  10. @property (nonatomic,weak) UILabel *titleL;
  11. @end
  12. @implementation JXFriendHeadView
  13. -(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
  14. if (self=[super initWithReuseIdentifier:reuseIdentifier]) {
  15. self.contentView.backgroundColor=THEMEBACKCOLOR;
  16. UILabel *labeL=[[UILabel alloc]init];
  17. labeL.textColor=kRGBColor151;
  18. labeL.font=[UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
  19. [self.contentView addSubview:labeL];
  20. self.titleL=labeL;
  21. }
  22. return self;
  23. }
  24. -(void)layoutSubviews{
  25. [super layoutSubviews];
  26. self.titleL.frame=CGRectMake(15, 0, self.frame.size.width-30, self.frame.size.height);
  27. }
  28. -(void)setStrURL:(NSString *)strURL{
  29. _strURL=strURL;
  30. self.titleL.text=[NSString stringWithFormat:@"%@",strURL];
  31. }
  32. @end