我已将ScrollView添加为子视图并确认其委托。
contentView = [[UIScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, frame.size.width, frame.size.height)];
contentView.showsHorizontalScrollIndicator = NO;
contentView.showsVerticalScrollIndicator = NO;
contentView.delegate = self;
[self addSubview:contentView];
一切正常。但是当我快速且快速地滚动时,委托方法不会被触发。
scrollViewDidEndDecelerating:
scrollViewDidEndScrollingAnimation:
scrollViewDidEndDragging:willDecelerate:
不知道为什么会这样?