Latest 0.2
Homepage https://github.com/mehfuzh/MHRadialProgressView
License MIT
Platforms ios 5.0, requires ARC
Authors

MHRadialProgressView is an iOS drop-in class radial animated progress view.


(by placeit)

Requirements

MHRadialProgressView works on iOS 6 and above and is compatible with ARC projects. It depends on the following Apple frameworks:

  • Foundation.framework
  • UIKit.framework

Including MHRadialProgressView to your project

Source files

You can directly add the MHRadialProgressView.h and MHRadialProgressView.m source files to your project.

  1. Download the latest zip from github or clone the source in your desired directory.
  2. Open your project in Xcode, then drag and drop MHRadialProgressView.h and MHRadialProgressView.m onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include MHRadialProgressView with #import "MHRadialProgressView.h".

Cocoapods

CocoaPods is the recommended way to add MHRadialProgressView to your project.

  1. Add a pod entry for MHRadialProgressView to your Podfile pod 'MHRadialProgressView', '~> 0.2'
  2. Install the pod(s) by running pod install.
  3. Include MHTextField with #import "MHRadialProgressView.h"

Usage

  1. Initialize the view with steps that define a particular operation complete.

    self.progressView = [[MHRadialProgressView alloc]   initWithFrame:CGRectMake(0, 0, 150, 150) points:@[@5, @10, @2, @9]];
  2. Add it as subview:

    [self.view addSubview:self.progressView];
  3. Make progress by calling the following method:

    [self.progressView moveNext];

By default, the progress view displays % value. However you can override the style by calling the following method:

// Default is MHProgressStylePercentage. Sets the progress style
- (void)setProgressStyle:(MHProgressStyle)style;

It is also possible to format the label that displays the progress value using the folloiwng method:

- (void)setLabelWithFormat:(NSString*)format;

For unordered progres (often by steps associated wtih user action), you can increase the progress by value:

- (void) moveNext:(NSNumber*)value;

License

This code is distributed under the terms and conditions of the MIT license.

Latest podspec

{
    "name": "MHRadialProgressView",
    "version": "0.2",
    "summary": "iOS 7 radial progress view.",
    "description": "tt  MHRadialProgressView is an iOS drop-in class radial animated progress view.nntt  [![](https://raw.githubusercontent.com/mehfuzh/MHRadialProgressView/master/ScreenShots/demo.png)](https://raw.githubusercontent.com/mehfuzh/MHRadialProgressView/master/ScreenShots/demo.png)ntt  _(by placeit)_nntt  ##Requirementsntt  MHRadialProgressView works on iOS 6 and above and is compatible with ARC projects. It depends on the following Apple frameworks:nntt  * Foundation.frameworkntt  * UIKit.frameworknntt  ##Including MHRadialProgressView to your projectnntt  ### Source filesnntt  You can directly add the `MHRadialProgressView.h` and `MHRadialProgressView.m` source files to your project.nntt  1. Download the latest zip from github or clone the source in your desired directory.ntt  2. Open your project in Xcode, then drag and drop `MHRadialProgressView.h` and `MHRadialProgressView.m` onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project. ntt  3. Include MHRadialProgressView with `#import "MHRadialProgressView.h"`.nnntt  ### Cocoapodsntt  [CocoaPods](http://cocoapods.org) is the recommended way to add MHRadialProgressView to your project.nntt  1. Add a pod entry for MHRadialProgressView to your Podfile `pod 'MHRadialProgressView', '~> 0.1'`ntt  2. Install the pod(s) by running `pod install`.ntt  3. Include MHTextField with `#import "MHRadialProgressView.h"`nnntt  ## Usage ntt  1. Initialize the view with steps that define a particular operation complete.nntt  ttself.progressView = [[MHRadialProgressView alloc] tinitWithFrame:CGRectMake(0, 0, 150, 150) points:@[@5, @10, @2, @9]];nntt  2. Add it as subview:nntt  tt[self.view addSubview:self.progressView];nntt  3. Make progress by calling the following method:nntt  tt[self.progressView moveNext];nntt  By default, the progress view displays % value. However you can override the style by calling the following method:nntt  t// Default is MHProgressStylePercentage. Sets the progress stylentt  t- (void)setProgressStyle:(MHProgressStyle)style;nntt  It is also possible to format the label that displays the progress value using the folloiwng method:nntt  t- (void)setLabelWithFormat:(NSString*)format;nntt  For unordered progres (often by steps associated wtih user action), you can increase the progress by value:nntt  t- (void) moveNext:(NSNumber*)value;nntt  ## Licensenntt  This code is distributed under the terms and conditions of the [MIT license](LICENSE).n",
    "homepage": "https://github.com/mehfuzh/MHRadialProgressView",
    "screenshots": "https://raw.githubusercontent.com/mehfuzh/MHRadialProgressView/master/ScreenShots/placeit.png",
    "license": "MIT",
    "authors": {
        "Mehfuz Hossain": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/mehfuzh/MHRadialProgressView.git",
        "tag": "0.2"
    },
    "source_files": "MHRadialProgressView/Classes/MHRadialProgressView.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This