| | |
| | | #import "DDKit.h" |
| | | #import "EZDeviceTableViewController.h" |
| | | #import "EZDdnsDeviceTableViewController.h" |
| | | #import "EZAddByQRCodeViewController.h" |
| | | |
| | | // 设备bonjour搜索到的状态标示 |
| | | typedef enum _DEVICE_STATE |
| | |
| | | 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]; |
| | | |
| | |
| | | } |
| | | } |
| | | #pragma mark - Action Methods |
| | | |
| | | - (void)completionButtonClicked:(id)sender |
| | | { |
| | | NSArray *viewControllers = self.navigationController.viewControllers; |
| | |
| | | [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; |
| | | } |
| | | } |
| | | } |
| | | |