Latest 1.0.1
Homepage https://github.com/tLewisII/TJLProgressView
License MIT
Platforms ios 7.0, requires ARC
Authors

A subclass of UIProgressView that takes a NSProgress which it monitors and updates automatically. Also can be show vertically rather than just horizontally. Will be automatically be removed from the parent view when progress is complete.

gif

Usage

Works just like a normal UIProgressView, except you initialize it with an NSProgress object like so:
[[TJLProgressView alloc] initWithProgress:self.progressIndicator progressViewStyle:UIProgressViewStyleBar];

It will then automatically update itself as the given NSProgress object updates.

There are also convenience methods for showing it from a view such as:

TJLProgressView *navBarProgress = [[TJLProgressView alloc] initWithProgress:self.progressIndicator progressViewStyle:UIProgressViewStyleBar];
    [navBarProgress showFromBottomOfNavigationController:self.navigationController];

TJLProgressView *bottomProgress = [[TJLProgressView alloc] initWithProgress:self.progressIndicator progressViewStyle:UIProgressViewStyleBar];
[bottomProgress showFromBottomOfView:self.view];

    TJLProgressView *leftSideProgress = [[TJLProgressView alloc] initWithProgress:self.progressIndicator progressViewStyle:UIProgressViewStyleBar];
    [leftSideProgress showVerticallyOnLeftSideOfView:self.view havingNavigationBar:YES];

    TJLProgressView *rightProgress = [[TJLProgressView alloc] initWithProgress:self.progressIndicator progressViewStyle:UIProgressViewStyleBar];
    [rightProgress showVerticallyOnRightSideOfView:self.view havingNavigationBar:YES];

and yes, you did read that right, it can be shown vertically as well.

Installation

TJLProgressView uses cocoapods, so just put pod 'TJLProgressView' 'version' into your podfile and install like normal. then just #import <TJLProgressView/TJLProgressView.h> wherever you want to use it.

License

If you use TJLProgressView and you like it, feel free to let me know, [email protected]. If you have any issue or want to make improvements, submit a pull request.

The MIT License (MIT)
Copyright (c) 2014 Terry Lewis II

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Latest podspec

{
    "name": "TJLProgressView",
    "version": "1.0.1",
    "license": "MIT",
    "summary": "A sublcass of UIProgressView that takes an NSProgress and updates automatically.",
    "homepage": "https://github.com/tLewisII/TJLProgressView",
    "authors": {
        "Terry Lewis II": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tLewisII/TJLProgressView.git",
        "tag": "v1.0.1"
    },
    "source_files": "TJLProgressView/Source/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "social_media_url": "https://twitter.com/tlewisii"
}

Pin It on Pinterest

Share This