Просмотр исходного кода

1.修改iOS Apex Mobile从Search返回到HomeDialog没有消失。

Pen Li 7 лет назад
Родитель
Сommit
2618023ff3
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      Apex Mobile/Apex Mobile/HomeViewController.m

+ 7 - 2
Apex Mobile/Apex Mobile/HomeViewController.m

@@ -101,7 +101,11 @@ typedef enum {
 
     [self clearNavigationbar];
     [self configureNavigationBar];
-    
+
+}
+
+- (void)viewDidAppear:(BOOL)animated {
+    [super viewDidAppear:animated];
     
     if (self.mode == HomeModeRecent) {
         if (self.shipArray.count == 0 || self.recentRefresh) {
@@ -117,7 +121,6 @@ typedef enum {
             self.parentViewController.title = str;
         }
     }
-    
 }
 
 - (void)viewWillDisappear:(BOOL)animated {
@@ -270,10 +273,12 @@ typedef enum {
 
 - (void)showProgressDialog {
     [self presentViewController:self.progressDialog animated:true completion:nil];
+    NSLog(@"-dialog show %@",self.progressDialog);
 }
 
 - (void)dismissProgressDialog {
     [self.progressDialog dismissViewControllerAnimated:YES completion:nil];
+    NSLog(@"-dialog dismiss %@",self.progressDialog);
 }
 
 #pragma mark - Load Data