您可以通过将其添加UIRefreshControl到集合的子视图UICollectionView来添加(或任何其他UIScrollView):
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged];
[self.collectionView addSubview:refreshControl];
当集合视图布局具有UICollectionViewScrollDirectionHorizontal.
我尝试覆盖layoutSubviews将刷新控件放在左侧,但它不会以这种方式跟踪滚动进度。我可以欺骗它使用水平布局吗?
