Skip to content

Files

Latest commit

49c8c52 · Aug 8, 2018

History

History

RefreshControl

在UIScrollView、UICollectionView和UITableView中添加UIRefreshControl实现下拉刷新

从iOS 10开始,UIScrollView增加了一个refreshControl属性,用于把配置好的UIRefreshControl赋值给该属性,这样UIScrollView就有了下拉刷新功能。

因为UITableViewUICollectionView继承自UIScrollView,所以UITableViewUICollectionView也继承了refreshControl属性,也可以很方便的实现下拉刷新功能。

RefreshControl

详细介绍查看下面文章:

https://github.com/pro648/tips/wiki/在UIScrollView、UICollectionView和UITableView中添加UIRefreshControl实现下拉刷新