UIScroll View Delegate不调用ScrollViewDidEndScrollingAnimation [英] UIScroll View Delegate not calling ScrollViewDidEndScrollingAnimation

查看:354
本文介绍了UIScroll View Delegate不调用ScrollViewDidEndScrollingAnimation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的.h文件中实现了 UIScrollViewDelegate 协议,我实现了

I have implemented the UIScrollViewDelegate protocol in my .h file and i have implemented the

- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView

我的方法。米课。当在我的表视图中完成滚动时,会调用其他的scrollview委托方法,但是当滚动结束时, -scrollViewDidEndScrollingAnimation:没有被调用。我有点陷入困境。

method in my .m class. when the scrolling is done in my table view other delegate method of scrollview are getting called, but when scrolling ends, -scrollViewDidEndScrollingAnimation: is not getting called. I am bit stuck in this.

谢谢和问候

推荐答案

编程生成的滚动结束时,将调用 -scrollViewDidEndScrollingAnimation:

-scrollViewDidEndDecelerating:是用户滑动滚动完成时调用。

-scrollViewDidEndScrollingAnimation: is called when a programmatic-generated scroll finishes.
-scrollViewDidEndDecelerating: is called when a user-swipe scroll finishes.

这篇关于UIScroll View Delegate不调用ScrollViewDidEndScrollingAnimation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆