You can find an example of the ETRunnerBar usage with UICollectionView
.
ETRunnerBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ETRunnerBar"
You should initialize and customize if you want, in the viewDidLoad method.
But also you should call these 4 ETRunnerBar methods inside the scrollView delegates to help ETRunnerBar to detect your scrollView's actions.
runnerBar = [[ETRunnerBar alloc] init];
-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
[runnerBar ETScrollViewWillBeginDragging:scrollView];
}
-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
[runnerBar ETScrollViewDidEndDragging:scrollView willDecelerate:decelerate];
}
-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
[runnerBar ETScrollViewDidEndDecelerating:scrollView];
}
-(void)scrollViewDidScroll:(UIScrollView *)scrollView {
[runnerBar ETScrollViewDidScroll:scrollView];
}