瀏覽代碼

【IOS端】隐私模式进行修改密码,修改成功后应返回隐私模式界面,现一直停留在修改密码界面

huangxiaodong 1 年之前
父節點
當前提交
0e484c98d4
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      创维盒子/双子星云手机/Class/Set/ModifyPWD/ModifyPWDSecondViewController.m

+ 3 - 1
创维盒子/双子星云手机/Class/Set/ModifyPWD/ModifyPWDSecondViewController.m

@@ -9,6 +9,7 @@
 #import <Masonry.h>
 #import "MySetViewController.h"
 #import "connectDeviceManager.h"
+#import "mineViewController.h"
 
 @interface ModifyPWDSecondViewController (){
     NSString *pwd;
@@ -298,7 +299,8 @@
 
 - (void)goSetHome{
     for (UIViewController *vc in [self.navigationController viewControllers]) {
-        if ([vc isKindOfClass:[MySetViewController class]]){
+        if ([vc isKindOfClass:[MySetViewController class]]
+            ||[vc isKindOfClass:[mineViewController class]]){
             [self.navigationController popToViewController:vc animated:YES];
             break;
         }