Kaynağa Gözat

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

huangxiaodong 1 yıl önce
ebeveyn
işleme
0e484c98d4

+ 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;
         }