UIButton / UIView category that add a progress indicator overlay simply with single line of code.
To run the example project; clone the repo, and run pod install
from the Project directory first, or simply import LOLProgressOverlayView.h
and .m
file into your project.
Say you have a button or a view, just type single line of code
[button setProgress: 0.75];
or
[view setProgress: 0.3];
and you see the effect.
You can set your own colors: overlayColor
and backgroundMaskColor
by using method below:
-[UIView setOverlayColor:setBackgroundMaskColor:];
iOS 6 and above.
LOLProgressOverlayView is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "LOLProgressOverlayView"
DJ.Ben, lsh32768@gmail.com
LOLProgressOverlayView is available under the MIT license. See the LICENSE file for more info.