萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-12-18 b4e1288a9b63eb820e9c9489c56aac4bf6b31067
EZSDK/EZSDK/EZ/UIViewControllers/EZWifiConfigViewController.m
@@ -11,6 +11,7 @@
#import "DDKit.h"
#import "EZDeviceTableViewController.h"
#import "EZDdnsDeviceTableViewController.h"
#import "EZAddByQRCodeViewController.h"
// 设备bonjour搜索到的状态标示
typedef enum _DEVICE_STATE
@@ -590,13 +591,20 @@
            self.animationImageView.animationImages = nil;
            //调整图片高度
            
            self.animationImageView.image = [UIImage imageNamed:@"addDevice_success"];//成功标示图片
            [self.animationImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.top.mas_equalTo(@90);
                make.leading.trailing.mas_equalTo(@0);
                make.height.mas_equalTo(@(185 * [UIScreen mainScreen].bounds.size.width/320.0f));
//            self.animationImageView.image = [UIImage imageNamed:@"addDevice_success"];//成功标示图片
            self.animationImageView.image = [UIImage imageNamed:@"hdl_ez_add_device_success"];//成功标示图片
            [self.animationImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                make.top.mas_equalTo(@100);
                make.leading.mas_equalTo(([UIScreen mainScreen].bounds.size.width-80)/2);
                make.trailing.mas_equalTo(-([UIScreen mainScreen].bounds.size.width-80)/2);
                make.height.mas_equalTo(80);
            }];
//            [self.animationImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
//                make.top.mas_equalTo(@90);
//                make.leading.trailing.mas_equalTo(@0);
//                make.height.mas_equalTo(@(185 * [UIScreen mainScreen].bounds.size.width/320.0f));
//            }];
            
            [self.view addSubview:self.completionLabel];
            
@@ -788,7 +796,6 @@
    }
}
#pragma mark - Action Methods
- (void)completionButtonClicked:(id)sender
{
    NSArray *viewControllers = self.navigationController.viewControllers;
@@ -807,6 +814,13 @@
            [self.navigationController popToViewController:vc animated:YES];
            break;
        }
        if ([vc isKindOfClass:[EZAddByQRCodeViewController class]])
        {//跳转到扫码页
//            ((EZAddByQRCodeViewController *)vc).shouldPop = YES;
            [self.navigationController popToViewController:((EZAddByQRCodeViewController *)vc).prevController animated:YES];
            break;
        }
    }
}