Sfoglia il codice sorgente

1.修改iOS Apex Drivers下拉刷新失败清空数据。

Pen Li 7 anni fa
parent
commit
599f20c237

+ 7 - 1
Redant Drivers/Apex And Drivers/Detail/RAOrderDetailViewController.m

@@ -184,9 +184,15 @@
                     [strongSelf.detailTableView reloadData];
                     [strongSelf.detailTableView reloadData];
                     
                     
                 } else {
                 } else {
+                    
+                    [strongSelf.sectionArray removeAllObjects];
+                    strongSelf.detailTableView.contentOffset = CGPointZero;
+                    [strongSelf.detailTableView reloadData];
+                    
                     // process error
                     // process error
                     NSString *msg = [json objectForKey:@"err_msg"];
                     NSString *msg = [json objectForKey:@"err_msg"];
-                    [strongSelf showAlert:msg];
+//                    [strongSelf showAlert:msg];
+                    [strongSelf showAlertTilte:@"Warning" message:msg];
                 }
                 }
             }
             }
             
             

+ 7 - 1
Redant Drivers/Apex And Drivers/Home/More/RAHomeMoreViewController.m

@@ -185,9 +185,15 @@ typedef enum {
                     }
                     }
                     
                     
                 } else {
                 } else {
+                    
+                    [strongSelf.orderArray removeAllObjects];
+                    strongSelf.homeMoreTableView.contentOffset = CGPointZero;
+                    [strongSelf.homeMoreTableView reloadData];
+                    
                     // process error
                     // process error
                     NSString *msg = [json objectForKey:@"err_msg"];
                     NSString *msg = [json objectForKey:@"err_msg"];
-                    [strongSelf showAlert:msg];
+//                    [strongSelf showAlert:msg];
+                    [strongSelf showAlertTilte:@"Warning" message:msg];
                 }
                 }
             }
             }
             
             

+ 7 - 1
Redant Drivers/Apex And Drivers/Home/RAHomeViewController.m

@@ -290,9 +290,15 @@
 //                    [center removeAllPendingNotificationRequests];
 //                    [center removeAllPendingNotificationRequests];
                     
                     
                 } else {
                 } else {
+                    
+                    [strongSelf.sectionArray removeAllObjects];
+                    strongSelf.homeOrderTableView.contentOffset = CGPointZero;
+                    [strongSelf.homeOrderTableView reloadData];
+                    
                     // process error
                     // process error
                     NSString *msg = [json objectForKey:@"err_msg"];
                     NSString *msg = [json objectForKey:@"err_msg"];
-                    [strongSelf showAlert:msg];
+//                    [strongSelf showAlert:msg];
+                    [strongSelf showAlertTilte:@"Warning" message:msg];
                 }
                 }
             }
             }
             
             

+ 7 - 1
Redant Drivers/Apex And Drivers/Update/RAOrderEditViewController.m

@@ -240,9 +240,15 @@
                     [strongSelf.orderEditTableView reloadData];
                     [strongSelf.orderEditTableView reloadData];
                     
                     
                 } else {
                 } else {
+                    
+                    [strongSelf.sectionArray removeAllObjects];
+                    strongSelf.orderEditTableView.contentOffset = CGPointZero;
+                    [strongSelf.orderEditTableView reloadData];
+                    
                     // process error
                     // process error
                     NSString *msg = [json objectForKey:@"err_msg"];
                     NSString *msg = [json objectForKey:@"err_msg"];
-                    [strongSelf showAlert:msg];
+//                    [strongSelf showAlert:msg];
+                    [strongSelf showAlertTilte:@"Warning" message:msg];
                 }
                 }
             }
             }