LLACircularProgressView icon indicating copy to clipboard operation
LLACircularProgressView copied to clipboard

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

  • http://github.com/lipka
  • http://twitter.com/lipec
  • http://lukaslipka.com

License

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