Skip to content

An iOS objective C library that replicates the pre-lollipop android intermediate progress bar.

License

Notifications You must be signed in to change notification settings

SkipperQ93/USIndeterminateProgressBarView

Repository files navigation

USIndeterminateProgressBarView

An iOS objective C library that replicates the pre-lollipop android intermediate progress bar.

##AppDelegate:

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"ApplicationInBackground" object:nil];
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"ApplicationInForeground" object:nil];
}

##Usage:

    UINavigationBar *navigationBar = self.navigationController.navigationBar;
    USIndeterminateProgressBarView *indeterminateProgressBarView = [[USIndeterminateProgressBarView alloc] initWithFrame:CGRectMake(0, navigationBar.frame.size.height - 2, navigationBar.frame.size.width, 3) numberOfBars:3 marginWidth:5 timeTakenByOneBarToCoverScreen:2 barColor:[UIColor blackColor] backgroundColor:[UIColor whiteColor]];
    [navigationBar addSubview:indeterminateProgressBarView];

About

An iOS objective C library that replicates the pre-lollipop android intermediate progress bar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published