用于“上拉"的 UIRefreshControl刷新? [英] UIRefreshControl for "Pull Up" to refresh?
本文介绍了用于“上拉"的 UIRefreshControl刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将 UIRefreshControl 添加到 UIColloectionView 的底部?这意味着在向上滚动(查看旧数据或其他内容)时它是如何工作的?
How do I add UIRefreshControl to bottom of a UIColloectionView? That means how does it work when It comes to Scroll up (to see old data or something)?
推荐答案
这里有一个 CCBottomRefreshControl 类别实现 bottomRefreshControl 属性的 UIScrollView 类(UICollectionView 类的父级).它与 iOS 6 和 7 原生刷新控件兼容.
Here is a CCBottomRefreshControl category for UIScrollView class (parent of UICollectionView class) that implements bottomRefreshControl property. It's compatible with both iOS 6 and 7 native refresh controls.
这篇关于用于“上拉"的 UIRefreshControl刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文