TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Thomas Winkler.
A custom UIView with a gauge control (tachometer like control). Detects swipe gesture and sets the needle/level appropriately. You can customize colors, the maximum level, min/max images, etc.
Installing with CocoaPods
If you're unfamiliar with CocoaPods you can check out this tutorial here.
Add the pod SFGaugeView
to your Podfile.
platform :ios, '7.0'
pod 'SFGaugeView'
Run pod install
.
.xcworkspace
file to launch Xcode and start using the control!Set up parameters
maxlevel = The maximum level of gauge control (unsigned int value)
minlevel = The minimum level of gauge control (unsigned int value)
needleColor = Color of needle
bgColor = Background Color of gauge control
hideLevel = If set to YES the current level is hidden
minImage = An image for min level (see screenshot)
maxImage = An image for max level (see screenshot)
currentLevel = Sets the current Level
autoAdjustImageColors = Overlays the images with needleColor (default: NO)
GaugeControl interaction currentLevel = Returns the current level
- (void) sfGaugeView:(SFGaugeView*) gaugeView didChangeLevel:(NSInteger) level;
Distributed under the MIT License.