萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-12-18 b4e1288a9b63eb820e9c9489c56aac4bf6b31067
EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m
@@ -46,9 +46,9 @@
        make.leading.mas_equalTo(@10);
        make.trailing.mas_equalTo(@-10);
        if([UIScreen mainScreen].bounds.size.height == 480.0){
            make.top.mas_equalTo(@10);
            make.top.mas_equalTo(10+50);
        }else{
            make.top.mas_equalTo(@99);
            make.top.mas_equalTo(99+50);
        }
        make.height.mas_equalTo(@50);
    }];
@@ -56,8 +56,9 @@
    [self.view addSubview:self.deviceImageView];
    [self.deviceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.tipsLabel.mas_bottom).offset(19);
        make.width.mas_equalTo(@174);
        make.height.mas_equalTo(@199);
//        make.width.mas_equalTo(@174);
//        make.height.mas_equalTo(@199);
        make.width.height.mas_equalTo(0);
        make.centerX.mas_equalTo(self.view.mas_centerX);
    }];
    
@@ -78,6 +79,8 @@
    }];
    
    [self checkDevice];
    self.deviceImageView.hidden=YES;
}
- (void)didReceiveMemoryWarning {
@@ -104,7 +107,7 @@
    [self.exceptionButton setTitle:NSLocalizedString(@"wifi_config_wifi_ago", @"这台设备以前配过网络") forState:UIControlStateNormal];
    
    NSMutableAttributedString *attributeStr = [[NSMutableAttributedString alloc] initWithString:self.tipsLabel.text];
    [attributeStr addAttributes:@{NSForegroundColorAttributeName:[UIColor dd_hexStringToColor:@"0xff4000"],NSFontAttributeName:[UIFont boldSystemFontOfSize:16.0f]} range:[self.tipsLabel.text rangeOfString:@"30"]];
    [attributeStr addAttributes:@{NSForegroundColorAttributeName:[UIColor dd_hexStringToColor:@"0xff4000"],NSFontAttributeName:[UIFont boldSystemFontOfSize:18.0f]} range:[self.tipsLabel.text rangeOfString:@"30"]];
    self.tipsLabel.attributedText = attributeStr;
}
@@ -201,9 +204,9 @@
    {
        _tipsLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _tipsLabel.backgroundColor = [UIColor clearColor];
        _tipsLabel.font = [UIFont systemFontOfSize:16.0f];
        _tipsLabel.font = [UIFont systemFontOfSize:18.0f];
        _tipsLabel.textColor = [UIColor dd_hexStringToColor:@"0x333333"];
        _tipsLabel.numberOfLines = 2;
        _tipsLabel.numberOfLines = 3;
        _tipsLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _tipsLabel;