A progress bar which is similar to the one on iOS's launching screen. All the drawing stuffs are implemented with Core Graphics in order to achieve high performance and feel comfortable for resizing.
TYMProgressBarView is tested on both iOS 6 and iOS 7.
// Create a progress bar view and set its appearance
TYMProgressBarView *progressBarView = [[TYMProgressBarView alloc] initWithFrame:aFrame];
progressBarView.barBorderWidth = 1.0f;
progressBarView.barBorderColor = yourColor;
// Add it to your view
[yourView addSubview:progressBarView];
// Set the progress
progressBarView.progress = 0.2f;
progressBarView.progress = 0.5f;You can also customize the appearance through the UIAppearance proxy. See TYMProgressBarView.h for full documentation.
Download the source files or add it as a git submodule. Add TYMProgressBarView.h and TYMProgressBarView.m to your project.
TYMProgressBarView uses Automatic Reference Counting (ARC). It also requires the Core Graphics framework.
If you are using CocoaPods, then just add the next line to your Podfile:
pod 'TYMProgressBarView'Now run pod install to install the dependency.
The code is based on DDProgressView by Damien DeVille and SSPieProgressView by Sam Soffes.
TYMProgressBarView is available under the MIT license. See the LICENSE file for details.
