YOUPAILPChatTipView.m 715 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // YOUPAILPChatTipView.m
  3. // zhimi
  4. //
  5. // Created by 张灿 on 2019/1/28.
  6. // Copyright © 2019年 caiPro. All rights reserved.
  7. //
  8. #import "YOUPAILPChatTipView.h"
  9. @implementation YOUPAILPChatTipView
  10. - (instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. [self youpaifsetupView];
  15. }
  16. return self;
  17. }
  18. - (void)youpaifsetupView{
  19. self.backgroundColor = [LZ7C69FEColor colorWithAlphaComponent:0.09f];
  20. UILabel* tipLabel = [[UILabel alloc]initWithFrame:CGRectMake(17, 0, self.mj_w - 34.0f, self.mj_h)];
  21. tipLabel.font = LCFont12;
  22. tipLabel.textColor = UIColor.whiteColor;
  23. [self addSubview:tipLabel];
  24. self.tipLabel = tipLabel;
  25. }
  26. @end