Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.29 KB

File metadata and controls

36 lines (22 loc) · 1.29 KB

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

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

SweepingProgressBar

Installation

  • Drag the SweepingProgressBar/SweepingProgressBar folder into your project.
  • Add the QuartzCore framework to your project.

Usage

(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]).

Showing the bar

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;