Created
October 18, 2013 15:25
-
-
Save mjjimenez/7043212 to your computer and use it in GitHub Desktop.
Add UIRefreshControl to UICollectionView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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