4
UICollectionView에서 UIRefreshControl을 사용하고 있습니다. 상쾌하게 작동하지만보기가 끌어온 후에 맨 위에 머 무르지 않습니다 (uitableview 에서처럼). 이 막대기를 만들 수있는 방법이 있나요 아니면 UITableViewController에 대해서만 구현되어 있습니까?UICollectionView를 가져온 후에 UIRefreshControl이 고정되지 않습니다.
self.refreshControl = [[UIRefreshControl alloc] init];
self.refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"Pull to Refresh"];
[self.refreshControl addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];
[self.collectionView addSubview:self.refreshControl];
[self.collectionView setAlwaysBounceVertical:YES];
안녕하세요! 이 문제에 대한 해결책을 찾았습니까? – norlin
안녕하세요, 정확하지 않습니다 - UIView 및 스크롤 이벤트를 사용하여 사용자 지정 새로 고침보기를 만들었으므로 UIRefreshControl에서 방법을 찾지 못했습니다. – rEquation