UIScroll View Delegate not calling ScrollViewDidEndScrollingAnimation

不打扰是莪最后的温柔 提交于 2019-11-28 21:06:12
Bogatyr

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

I had the same problem ... Try using scrollViewDidEndDecelerating instead.

Had the same problem. Have used the following in my delegate class:

#pragma mark -
#pragma mark UIScrollViewDelegate
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {

    NSLog(@"lol");
}

works like a charm!

Deeps

I had the same problem and the issue was i did not include the delegate code:

self.myScrollView.delegate=self;

Hope this helps someone as well.

Swift?

func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {

}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!