實(shí)現(xiàn)思路如下:
1.利用UIScrollViewDelegate方法來實(shí)現(xiàn)
2.scrollView滾動(dòng)代理 - (void)scrollViewDidScroll:(UIScrollView *)scrollView;
3.scrollView滑動(dòng)結(jié)束代理 - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
4.scrollView滾動(dòng)停止代理 - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
[self setPostBtnDisplayWithScrolling:scrollView.isDragging||scrollView.isDecelerating];
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
[self setPostBtnDisplayWithScrolling:scrollView.isDragging&&scrollView.isDecelerating];
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
[self setPostBtnDisplayWithScrolling:scrollView.isTracking&&scrollView.isDragging&&scrollView.isDecelerating];
}
好了,也沒什么可以詳細(xì)講的了疗我,喜歡的朋友點(diǎn)顆??唄...