Przeglądaj źródła

1.修改NPD Order Detail处理横竖屏切换。

Pen Li 8 lat temu
rodzic
commit
58f388ab68

+ 14 - 0
RedAnt ERP Mobile/common/Functions/order/OrderDetailViewController.m

@@ -271,6 +271,20 @@
   //  AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
 }
 
+- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
+    self.web_info_height = 0;
+    
+    [self.detailTable.indexPathsForVisibleRows enumerateObjectsUsingBlock:^(NSIndexPath * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
+       
+        if (obj.section == 0 && obj.section == 0) {
+            [self.detailTable reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationAutomatic];
+        }
+        
+    }];
+    
+    
+}
+
 
 - (IBAction)onReleaseOrderClick:(id)sender {