소스 검색

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