From 48c5a2c66c549d26fecadc6d2dad1924fdd1cc8b Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期四, 27 七月 2023 13:52:08 +0800
Subject: [PATCH] bugfix 猫眼呼叫问题修复
---
EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m b/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiTipsViewController.m
index e34b024..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;
}
@@ -134,7 +137,7 @@
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied
|| [CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted
|| [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) {
-
+
[self pushToLocationAlertVC];
}
else {
@@ -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