If your project doesn't use ARC: you must add the -fobjc-arc compiler flag to SweepingProgressBar.m in Target Settings > Build Phases > Compile Sources.
SweepingProgressBar is an improved implementation of TYIndeterminateProgressBar that appears by dropping down from the top of the view and animating smoothly back and forth until dismiss is called.
Here's a screenshot of it working: http://cl.ly/image/3L3n3y1e2G26
- Drag the
SweepingProgressBar/SweepingProgressBarfolder into your project. - Add the QuartzCore framework to your project.
(see sample Xcode project in /Demo)
SweepingProgressBar is created as a singleton (i.e. it doesn't need to be explicitly allocated and instantiated; you directly call [SweepingProgressBar method]).
You can show the status of inderterminate tasks using:
+ (void)showInView:(UIView *)view;
+ (void)showInView:(UIView *)view backgroundColor: cbgColor indicatorColor: cindicatorColor borderColor: cborderColor;To dismiss the progress bar, use
+ (void)dismiss;