关于我的添加版权文字

This commit is contained in:
linyudan
2023-12-22 14:07:22 -08:00
parent ba07ebf68d
commit a94e31f467

View File

@@ -27,6 +27,8 @@
@property (nonatomic, strong) UIView *privacyView; @property (nonatomic, strong) UIView *privacyView;
@property (nonatomic, strong) UILabel *privacyLabel; @property (nonatomic, strong) UILabel *privacyLabel;
@property (nonatomic, strong) UIImageView *privacyImageView; @property (nonatomic, strong) UIImageView *privacyImageView;
@property (nonatomic, strong) UILabel *companyTitleLabel;
@end @end
@implementation MewMineAboutUsViewController @implementation MewMineAboutUsViewController
@@ -70,6 +72,8 @@
[self.view addSubview:self.privacyView]; [self.view addSubview:self.privacyView];
[self.privacyView addSubview:self.privacyLabel]; [self.privacyView addSubview:self.privacyLabel];
[self.privacyView addSubview:self.privacyImageView]; [self.privacyView addSubview:self.privacyImageView];
[self.view addSubview:self.companyTitleLabel];
} }
- (void)makeConstriants { - (void)makeConstriants {
@@ -111,6 +115,11 @@
make.right.equalTo(self.privacyView).offset(-24); make.right.equalTo(self.privacyView).offset(-24);
make.centerY.equalTo(self.privacyView); make.centerY.equalTo(self.privacyView);
}]; }];
[self.companyTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.mas_equalTo(-kTabBarHeight);
make.centerX.equalTo(self);
}];
} }
#pragma mark - Getter && Setter #pragma mark - Getter && Setter
@@ -193,4 +202,15 @@
} }
return _titleLabel; return _titleLabel;
} }
- (UILabel *)companyTitleLabel{
if(!_companyTitleLabel){
_companyTitleLabel = [[UILabel alloc] init];
_companyTitleLabel.text = @"南宁冰创网络科技有限公司 版权所有";
_companyTitleLabel.textColor = UIColorMewFromRGB(0xA2A7B8);
_companyTitleLabel.font = kFontMedium(12);
_companyTitleLabel.textAlignment = NSTextAlignmentCenter;
}
return _companyTitleLabel;
}
@end @end