From b4e1288a9b63eb820e9c9489c56aac4bf6b31067 Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期三, 18 十二月 2024 14:34:16 +0800 Subject: [PATCH] feature 图片资源更新 --- EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m b/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m index 90b097b..8b10e59 100644 --- a/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m +++ b/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; -- Gitblit v1.8.0