Skip to content

mohsinalimat/MJProgressView

 
 

Repository files navigation

MJProgressView is a simple and Multiple colors in a UIProgressView.

MJProgressView

Installation

Installation is made simple with CocoaPods. If you want to do it the old fashioned way, just add MJProgressView.h and MJProgressView.m and MJProgressViewController.h and MJProgressViewController.m into your project.

Requirements

Installation

MJProgressView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MJProgressView"

Then, simply place this line in any file that uses MJProgressView.

#import <MJProgressView.h>

MJProgressView works on iOS 6.0 and up.

Usage

###Example usage: *.h

#import "MJProgressView.h"

@property (nonatomic, strong) MJProgressView *progress;

###Example usage: *.m

@synthesize progress;

NSArray *color = [[NSArray alloc]initWithObjects:[UIColor blueColor], [UIColor redColor], [UIColor orangeColor], nil];
progress = [[MJProgressView alloc] initWithFrame:CGRectMake(20, 200, 280, 2) progressCount:3 color:color];
[self.view addSubview:progress];

###On Progress Change

[progress setProgressAnimation:0.2];

Author

minjoongkim, kmj6773@gmail.com

License

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

About

iOS Multiple colors in a UIProgressView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 88.8%
  • Ruby 11.2%