CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2015 |
Maintained by Matt Brenman.
Code:
//Create the loader
_loadview = [[MBLoadingIndicator alloc] init];
//Start the loader
[self.loadview start];
//Add the loader to our view
[self.view addSubview:self.loadview];
//Change the percentage
[_loadview incrementPercentageBy:17];
//Fill up and start ending animation
[_loadview finish];
//Change loader colors
[_loadview setLoadedColor:[UIColor darkGrayColor]];
[_loadview setLoaderBackgroundColor:[UIColor whiteColor]];
//Change loader sizes
[_loadview setWidth:15];
[_loadview setOuterLoaderBuffer:0];
//Move the loader
[_loadview offsetCenterXBy:50.0f];
[_loadview offsetCenterYBy:50.0f];
//Choose full circle, half circle, or line
[_loadview setLoaderStyle:MBLoaderFullCircle];
//Preset sizes (tiny, small, medium, large)
[_loadview setLoaderSize:MBLoaderLarge];
//If you need greater control over the size
[_loadview setRadius:30];
//Set where the line originates from (full circle style only)
[_loadview setStartPosition:MBLoaderRight];
//Set animation speed
[_loadview setAnimationSpeed:MBLoaderSpeedFast];
//Get the percentage amount that is full (after current animation)
NSInteger amt = [_loadview getPercentage];
//Hide the loader (useful if error in main app occured)
[_loadview dismiss];
To run the example project, clone the repo, and run pod install
from the Example directory first.
*Open an issue with GitHub's issue reporting system *Send me an email at [email protected] *Send me a tweet at @mattbrenman with #MBLoaderIndicator
mbrenman, [email protected]
MBSimpleLoadingIndicator is available under the MIT license. See the LICENSE file for more info.