GSIndeterminateProgressView is a subclass of UIView that looks like UIProgressView but acts like UIActivityIndicatorView.
To run the example project; clone the repo, and run pod install
from the Example directory first.
Import GSIndeterminateProgressView.h
UINavigationBar *navigationBar = self.navigationController.navigationBar;
GSIndeterminateProgressView *progressView = [[GSIndeterminateProgressView alloc] initWithFrame:CGRectMake(0, navigationBar.frame.size.height - 2,
navigationBar.frame.size.width, 2)];
progressView.progressTintColor = navigationBar.barTintColor;
progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
[navigationBar addSubview:progressView];
[progressView startAnimating];
GSIndeterminateProgressBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GSIndeterminateProgressBar"
Endika Gutiérrez, [email protected]
GSIndeterminateProgressBar is available under the MIT license. See the LICENSE file for more info.