MOChatSendLimitView.m 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MOChatSendLimitView.m
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2024/9/23.
  6. //
  7. #import "MOChatSendLimitView.h"
  8. @interface MOChatSendLimitView ()
  9. @property (weak, nonatomic) IBOutlet UILabel *contentLab;
  10. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconLeft;
  11. @end
  12. @implementation MOChatSendLimitView
  13. + (instancetype)moChatSendLimitView{
  14. return [[[NSBundle mainBundle] loadNibNamed:@"MOChatSendLimitView" owner:self options:nil] firstObject];
  15. }
  16. - (void)awakeFromNib{
  17. [super awakeFromNib];
  18. BOOL isOnlyUseTim = GetOnlyUserTimBool;
  19. if(isOnlyUseTim){
  20. self.layer.cornerRadius = 4.0;
  21. self.layer.masksToBounds = YES;
  22. self.iconLeft.constant = 8.0;
  23. }
  24. else{
  25. self.layer.cornerRadius = 36.0 / 2.0;
  26. self.layer.masksToBounds = YES;
  27. }
  28. self.contentLab.font = [MOTextTools getTheFontWithSize:12.0 AndFontName:kNormalContentFontStr];
  29. }
  30. @end