Latest 2.0.0
Homepage https://github.com/aporat/KKProgressToolbar
License MIT
Platforms ios 7.0, requires ARC
Authors

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) {

    }];

Latest podspec

{
    "name": "KKProgressToolbar",
    "version": "2.0.0",
    "summary": "KKProgressToolbar is an iOS drop-in class that displays a translucent UIToolbar with a progress indicator",
    "homepage": "https://github.com/aporat/KKProgressToolbar",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Adar Porat": "http://github.com/aporat"
    },
    "social_media_url": "http://twitter.com/aporat28",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/aporat/KKProgressToolbar.git",
        "tag": "2.0.0"
    },
    "source_files": [
        "KKProgressToolbar/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This