zoukankan      html  css  js  c++  java
  • UIScrollViewDelegate

    // 触摸屏幕来滚动画面还是其他的方法使得画面滚动,皆触发该函数

    • (void)scrollViewDidScroll:(UIScrollView *)scrollView {
      NSLog(@"Scrolling...");
      }

    // 触摸屏幕并拖拽画面,再松开,最后停止时,触发该函数

    • (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
      NSLog(@"scrollViewDidEndDragging - End of Scrolling.");
      }

    // 滚动停止时,触发该函数

    • (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
      NSLog(@"scrollViewDidEndDecelerating - End of Scrolling.");
      }

    // 调用以下函数,来自动滚动到想要的位置,此过程中设置有动画效果,停止时,触发该函数
    // UIScrollView的setContentOffset:animated:
    // UIScrollView的scrollRectToVisible:animated:
    // UITableView的scrollToRowAtIndexPath:atScrollPosition:animated:
    // UITableView的selectRowAtIndexPath:animated:scrollPosition:

    • (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {
      NSLog(@"scrollViewDidEndScrollingAnimation - End of Scrolling.");
      }
  • 相关阅读:
    牛客练习赛9
    Good Bye 2017
    Wannafly挑战赛6
    TOJ1840: Jack Straws 判断两线段相交+并查集
    Codeforces Round #452 (Div. 2)
    TOJ4505: KOSARE
    Codeforces Round #451 (Div. 2)
    牛客练习赛8
    TOJ4168: Same Digits
    TOJ4483: Common Digit Pairs
  • 原文地址:https://www.cnblogs.com/xlliang/p/4790812.html
Copyright © 2011-2022 走看看