| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // QualificationsVC.m
- // yunbaolive
- //
- // Created by ybRRR on 2020/3/11.
- // Copyright © 2020 cat. All rights reserved.
- //
- #import "QualificationsVC.h"
- @interface QualificationsVC ()
- @end
- @implementation QualificationsVC
- - (UIStatusBarStyle)preferredStatusBarStyle {
- if (@available(iOS 13.0,*)) {
- return UIStatusBarStyleDarkContent;
- }
- return UIStatusBarStyleDefault;
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.titleL.text = YZMsg(@"资质证明");
- self.view.backgroundColor = UIColor.whiteColor;
- self.subNavi.backgroundColor = UIColor.whiteColor;
- self.titleL.textColor = UIColor.blackColor;
- [self.leftBtn setImage:[UIImage imageNamed:@"pub_back_black"] forState:0];
- self.naviLine.hidden = NO;
- self.naviLine.backgroundColor = RGB(245, 245, 245);
- [self createUI];
- }
- -(void)createUI{
- UILabel *contentLb = [[UILabel alloc]init];
- contentLb.font = [UIFont systemFontOfSize:14];
- contentLb.textColor = [UIColor blackColor];
- contentLb.numberOfLines = 0;
- contentLb.lineBreakMode = NSLineBreakByWordWrapping;
- contentLb.text = minstr([self.infos valueForKey:@"certificate_desc"]);
- [self.view addSubview:contentLb];
- [contentLb mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(self.view).offset(15);
- make.right.equalTo(self.view).offset(-15);
- make.top.equalTo(self.view).offset(64+statusbarHeight+20);
- }];
-
- UIImageView *img = [[UIImageView alloc]init];
- img.contentMode = UIViewContentModeScaleAspectFit;
- NSString *urls = minstr([self.infos valueForKey:@"certificate"]);
- [img sd_setImageWithURL:[NSURL URLWithString:urls]];
- [self.view addSubview:img];
- [img mas_makeConstraints:^(MASConstraintMaker *make) {
- make.width.mas_equalTo(300);
- make.height.mas_equalTo(425);
- make.top.equalTo(contentLb.mas_bottom).offset(10);
- make.centerX.equalTo(self.view.mas_centerX);
- }];
-
- }
- @end
|