Skip to content

Instantly share code, notes, and snippets.

@mjjimenez
Created October 18, 2013 15:25
Show Gist options
  • Save mjjimenez/7043212 to your computer and use it in GitHub Desktop.
Save mjjimenez/7043212 to your computer and use it in GitHub Desktop.
Add UIRefreshControl to UICollectionView
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColor grayColor];
[refreshControl addTarget:self action:@selector(refershControlAction) forControlEvents:UIControlEventValueChanged];
[self.collectionView addSubview:refreshControl];
self.collectionView.alwaysBounceVertical = YES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment