MJProgressView is a simple and Multiple colors in a UIProgressView.
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.
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.
###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];
minjoongkim, kmj6773@gmail.com
MJProgressView is available under the MIT license. See the LICENSE file for more info.