A scalable progress view that fits in a tiny amount of space.
CocoaPods
pod 'MCCircularProgressView', '~> 1.0.4'
Within Interface Builder, set a UIView's custom class to "MCCircularProgressView". The indicator will automatically scale to the size of the smallest dimension of the UIView.
Include the class:
#include <MCCircularProgressView.h>
Initialize MCCircularProgressView and add it to the subView like you would any UIView:
MCCircularProgressView *progressView = [[MCCircularProgressView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
[self.view addSubview:progressView];
You can change the color of the indicator by specifying the circleColor property:
progressView.circleColor = [UIColor redColor];