Explorar el Código

1.修改iOS Apex Driver首页下拉刷新回滚位置不对。

Pen Li hace 7 años
padre
commit
25f1a038f8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Redant Drivers/Apex And Drivers/Home/RAHomeViewController.m

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

@@ -263,6 +263,7 @@
 }
 
 - (void)refreshControlValueChanged:(UIRefreshControl *)refresh {
+    self.currentIndexPath = nil;
     [self loadData];
 }
 
@@ -407,7 +408,7 @@
                     [strongSelf.homeOrderTableView reloadData];
                     if (strongSelf.currentIndexPath) {
 //                        [strongSelf.homeOrderTableView scrollToRowAtIndexPath:self.currentIndexPath atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
-                        [strongSelf.homeOrderTableView selectRowAtIndexPath:self.currentIndexPath animated:NO scrollPosition:UITableViewScrollPositionMiddle];
+                        [strongSelf.homeOrderTableView selectRowAtIndexPath:strongSelf.currentIndexPath animated:NO scrollPosition:UITableViewScrollPositionMiddle];
                     } else {
                         
                     }