Files
yinmeng-ios/xplan-ios/Main/Room/View/PositionContainerView/PositionView/View/XCRoomPostionNickView.m
2021-10-18 19:10:13 +08:00

47 lines
994 B
Objective-C

//
// XCRoomPostionNickView.m
// xplan-ios
//
// Created by 冯硕 on 2021/10/15.
//
#import "XCRoomPostionNickView.h"
///Third
#import <Masonry/Masonry.h>
///Tool
#import "ThemeColor.h"
@interface XCRoomPostionNickView ()
///
@property (nonatomic,strong) UILabel *nickLabel;
@end
@implementation XCRoomPostionNickView
- (void)initSubViews {
[super initSubViews];
[self addSubview:self.nickLabel];
}
- (void)initSubViewConstraints {
[super initSubViewConstraints];
[self.nickLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self);
make.top.mas_equalTo(self.avatarImageView.mas_bottom).offset(7);
}];
}
#pragma mark - Getters And Setters
- (UILabel *)nickLabel {
if (!_nickLabel) {
_nickLabel = [[UILabel alloc] init];
_nickLabel.font = [UIFont systemFontOfSize:11];
_nickLabel.textColor = [ThemeColor mainTextColor];
_nickLabel.text = @"迷你号";
_nickLabel.textAlignment = NSTextAlignmentCenter;
}
return _nickLabel;
}
@end