| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // MOChatSendLimitView.m
- // MiMoLive
- //
- // Created by SuperC on 2024/9/23.
- //
- #import "MOChatSendLimitView.h"
- @interface MOChatSendLimitView ()
- @property (weak, nonatomic) IBOutlet UILabel *contentLab;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconLeft;
- @end
- @implementation MOChatSendLimitView
- + (instancetype)moChatSendLimitView{
- return [[[NSBundle mainBundle] loadNibNamed:@"MOChatSendLimitView" owner:self options:nil] firstObject];
- }
- - (void)awakeFromNib{
- [super awakeFromNib];
-
- BOOL isOnlyUseTim = GetOnlyUserTimBool;
- if(isOnlyUseTim){
- self.layer.cornerRadius = 4.0;
- self.layer.masksToBounds = YES;
- self.iconLeft.constant = 8.0;
- }
- else{
- self.layer.cornerRadius = 36.0 / 2.0;
- self.layer.masksToBounds = YES;
- }
-
- self.contentLab.font = [MOTextTools getTheFontWithSize:12.0 AndFontName:kNormalContentFontStr];
- }
- @end
|