ios7中调用[self.tableview scrollsToTop] 没有效果(ios8中也没有效果)

stackflow 处理方法:

[self.tableviewscrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];

 

或者implement the UIScrollViewDelegate method scrollViewShouldScrollToTop:

- (BOOL) scrollViewShouldScrollToTop:(UIScrollView*) scrollView {
    if (scrollView == self.myTableView) {
        return YES;
    } else {
        return NO;
    }
}
这个方法没有尝试
以上方法参见:http://stackoverflow.com/questions/19059024/cant-get-scrollstotop-working-on-ios7

相关文章:

  • 2021-12-03
  • 2021-08-12
  • 2021-07-16
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案