模仿锤子手机的下拉刷新效果
_scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
DxRefreshView *refreshHeader = [[DxRefreshView alloc] init];
refreshHeader.color = [UIColor blueColor];
refreshHeader.actionHandler = ^{
//刷新数据
};
刷新完成之后:
[_scrollView.refreshHeader endRefreshing];
不通过下拉触发,直接开始刷新:
[_scrollView.refreshHeader beginRefreshing];