Skip to content
KKProgressToolbar is an iOS drop-in class that displays a translucent UIToolbar with a progress indicator and some optional labels while work is being done in a background thread
Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
KKProgressToolbar.xcworkspace
KKProgressToolbar
example
screenshots
.gitignore
KKProgressToolbar.podspec.json
LICENSE
NOTICE
README.md

README.md

KKProgressToolbar

KKProgressToolbar is an iOS toolbar library

   

Requirements

  • Xcode 4.5 or higher
  • Apple LLVM compiler
  • iOS 5.0 or higher
  • ARC

Demo

build and run the KKProgressToolbarExample project in Xcode to see KKProgressToolbar in action.

Installation

The recommended approach for installing SocialAccounts is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Edit your Podfile and add KKProgressToolbar:

$ edit Podfile
platform :ios, '5.0'
pod 'KKProgressToolbar', :head

Install into your Xcode project:

$ pod install

Add #include "KKProgressToolbar.h" to the top of classes that will use it.

Example Usage

Showing and Hiding the toolbar

- (void)viewDidLoad
{
    [super viewDidLoad];

	CGRect statusToolbarFrame = CGRectMake(0, self.view.bounds.size.height, self.view.bounds.size.width, 44);
	self.statusToolbar = [[KKProgressToolbar alloc] initWithFrame:statusToolbarFrame];
	self.statusToolbar.actionDelegate = self;
	[self.view addSubview:self.statusToolbar];
    
}

- (void)didCancelButtonPressed:(KKProgressToolbar *)toolbar {
    [self stopUILoading];
}


- (IBAction)startUILoading  {
    
    self.statusToolbar.statusLabel.text = @"Loading from server...";
    [self.statusToolbar show:YES completion:^(BOOL finished) {
        
    }];
    
}


- (IBAction)stopUILoading {
    [self.statusToolbar hide:YES completion:^(BOOL finished) {
        
    }];
You can’t perform that action at this time.