• Stars
    star
    322
  • Rank 130,398 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An iOS7 style circular progress view with a stop button.

LLACircularProgressView

Build Status Version Platform

LLACircularProgressView is a deligthful iOS7 style circular progress view with a stop button.

  • Animated progress display
  • Stop button
  • Respects iOS7 interface tint color
  • Automatically dims the tint color when an alert view or an action sheet is presented
  • iOS7 compatible

Example

Screenshot

Open up the included Xcode project for an example app.

Usage

// Initialize the progress view
LLACircularProgressView *circularProgressView = [[LLACircularProgressView alloc] init];

// Optionally set the current progress
circularProgressView.progress = 0.5f;

// Optionally change the tint color
circulerProgressView.tintColor = [UIColor redColor];

// Optionally hook up the stop action
[circularProgressView addTarget:self action:@selector(stop:) forControlEvents:UIControlEventTouchUpInside];

// Add it as a subview
[self.view addSubview:circularProgressView];

...

// Animate progress changes
[circularProgressView setProgress:0.8f animated:YES];

See the header for full documentation.

Installation

CocoaPods is the recommended method of installing LLACircularProgressView. Simply add the following line to your Podfile:

Podfile

pod 'LLACircularProgressView'

Otherwise you can just add LLACircularProgressView.h and LLACircularProgressView.m to your project.

Requirements

LLACircularProgressView is tested on iOS6 and iOS7 and requires ARC.

Contact

Lukas Lipka

License

LLACircularProgressView is available under the MIT license. See the LICENSE file for more info.