0
我使用拉刷新與UICollectionView有一個標題(我不知道如果標題是相關的)。當我在刷新部分之前拉動刷新時,集合視圖跳下來(根本不流暢)。UICollectionView與標題拉刷新跳
可能是什麼問題?
這裏是我的代碼 -
- (void)addRefresh
{
self.refreshControl = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(reset) forControlEvents:UIControlEventValueChanged];
[self.refreshControl setBackgroundColor:[UIColor whiteColor]];
[self.profileCollectionView addSubview:self.refreshControl];
}
- (void)reset
{
[self.refreshControl endRefreshing];
}