Jelajahi Sumber

Apex Mobile 2.21.180720
修复ams / ifs 没内容时误判导致退出detail页面

Ray Zhang 7 tahun lalu
induk
melakukan
4ebc4f520e

TEMPAT SAMPAH
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 2
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -666,7 +666,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "553760020.219316"
+            timestampString = "554010530.151985"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "336"
@@ -682,7 +682,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "553760020.219741"
+            timestampString = "554010530.152544"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "351"

+ 15 - 9
Apex Mobile/Apex Mobile/DetailPageViewController.m

@@ -363,18 +363,24 @@
             else
             if([self.content get_segmentcount]==0)
             {
+                
+                
                 self.table.hidden =true;
                 self.norecordLabel.hidden=false;
                 
-                
-                UIAlertController *alertVC = [UIAlertController alertControllerWithTitle: @"Warning"
-                                                                                 message: @"No Search Result."
-                                                                          preferredStyle: UIAlertControllerStyleAlert];
-                UIAlertAction *action = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
-                    [weakSelf.navigationController popViewControllerAnimated:false];
-                }];
-                [alertVC addAction:action];
-                [weakSelf presentViewController:alertVC animated:YES completion:nil];
+                if(self.tabBarController.childViewControllers.count==1)
+                {
+                    UIAlertController *alertVC = [UIAlertController alertControllerWithTitle: @"Warning"
+                                                                                                  message: @"No Search Result."
+                                                                                           preferredStyle: UIAlertControllerStyleAlert];
+                    UIAlertAction *action = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+                        [weakSelf.navigationController popViewControllerAnimated:false];
+                    }];
+                    [alertVC addAction:action];
+                    [weakSelf presentViewController:alertVC animated:YES completion:nil];
+                    
+                }
+
                 
                 
             }