Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 iPhone 新手,目前正在处理集合视图。我怀疑当我们将集合视图滚动到顶部和底部时会调用任何委托方法,即向上滚动和向下滚动。
提前致谢。
您可以在代码中使用 – scrollViewDidScroll:、 –scrollViewShouldScrollToTop:和 –scrollViewDidScrollToTop:方法。
scrollViewDidScroll:
scrollViewShouldScrollToTop:
scrollViewDidScrollToTop:
集合视图继承自 UIScrollView。您可以实现相同的方法
你可以参考他们这里