|
|
@@ -9,6 +9,8 @@
|
|
|
#import <Masonry.h>
|
|
|
#import "UIView+View.h"
|
|
|
#import "QRCodeScanViewController.h"
|
|
|
+#import "ComontAlretViewController.h"
|
|
|
+
|
|
|
|
|
|
@interface TipsQRCodeViewController ()
|
|
|
|
|
|
@@ -110,4 +112,36 @@
|
|
|
}
|
|
|
*/
|
|
|
|
|
|
+- (void)viewDidAppear:(BOOL)animated
|
|
|
+{
|
|
|
+ [super viewDidAppear:animated];
|
|
|
+ if(_isNeedToShowAleatType){
|
|
|
+ [self showAlertFun];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)showAlertFun
|
|
|
+{
|
|
|
+
|
|
|
+
|
|
|
+ NSString *linkErrTip = NSLocalizedString(@"scan_sn_data_error_tip",nil);
|
|
|
+
|
|
|
+ ComontAlretViewController *linkFailAlretVC= [[ComontAlretViewController alloc] initWithTiTle:nil
|
|
|
+ msg:linkErrTip
|
|
|
+ imageStr:nil
|
|
|
+ cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
|
|
|
+ okTitle:nil isOkBtnHighlight:NO
|
|
|
+ didClickOk:^{
|
|
|
+
|
|
|
+
|
|
|
+ } didClickCancel:^{
|
|
|
+
|
|
|
+ }];
|
|
|
+
|
|
|
+ linkFailAlretVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
+
|
|
|
+ [self presentViewController:linkFailAlretVC animated:YES completion:^{
|
|
|
+ linkFailAlretVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
+ }];
|
|
|
+}
|
|
|
@end
|