41 lines
1.0 KiB
Objective-C
41 lines
1.0 KiB
Objective-C
//
|
|
// SettingResetViewController.m
|
|
// Ifish
|
|
//
|
|
// Created by Minghao Xue on 2018/7/24.
|
|
// Copyright © 2018年 lianlian. All rights reserved.
|
|
//
|
|
|
|
#import "SettingResetViewController.h"
|
|
#import "IFishHotpotUDPHelper.h"
|
|
#import "ConnectHotspotTipViewController.h"
|
|
|
|
@interface SettingResetViewController ()<IFishHotpotUDPHelperDelegate>
|
|
|
|
@end
|
|
|
|
@implementation SettingResetViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
self.title = @"恢复出厂设置";
|
|
|
|
}
|
|
|
|
- (IBAction)reset:(id)sender {
|
|
[IFishHotpotUDPHelper sharedInstance].delegate = self;
|
|
[[IFishHotpotUDPHelper sharedInstance] broadCastRestCommand];
|
|
}
|
|
- (IBAction)tipBtnClicked:(id)sender {
|
|
ConnectHotspotTipViewController *vc = [[ConnectHotspotTipViewController alloc] initWithNibName:nil bundle:nil];
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
}
|
|
|
|
#pragma mark - IFishHotpotUDPHelperDelegate
|
|
|
|
- (void)udpHelperCommandExecutedSuccess:(IFishUDPHelperBackMsgModel *)backModel {
|
|
[self.view makeToast:@"设备即将重置"];
|
|
}
|
|
|
|
@end
|