├── TestSFGaugeView ├── Podfile ├── TestSFGaugeView │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Images.xcassets │ │ ├── minImage.imageset │ │ │ ├── icon_smiley_bad.png │ │ │ ├── icon_smiley_bad@2x.png │ │ │ └── Contents.json │ │ ├── maxImage.imageset │ │ │ ├── icon_smiley_very_good.png │ │ │ ├── icon_smiley_very_good@2x.png │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── SFViewController.h │ ├── SFAppDelegate.h │ ├── SFViewXIB.h │ ├── TestSFGaugeView-Prefix.pch │ ├── main.m │ ├── SFViewXIB.m │ ├── TestSFGaugeView-Info.plist │ ├── SFViewXIB.xib │ ├── SFAppDelegate.m │ ├── SFViewController.m │ └── Base.lproj │ │ └── Main.storyboard ├── TestSFGaugeViewTests │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── TestSFGaugeViewTests-Info.plist │ └── TestSFGaugeViewTests.m ├── TestSFGaugeView.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── thomaswinkler.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ ├── xcuserdata │ │ └── thomaswinkler.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── TestSFGaugeView.xcscheme │ └── project.pbxproj └── Podfile.lock ├── screenshot.png ├── .gitignore ├── SFGaugeView.podspec ├── SFGaugeView ├── SFGaugeView.h └── SFGaugeView.m ├── LICENSE └── README.md /TestSFGaugeView/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '7.0' 2 | 3 | pod 'SFGaugeView', path: '../' 4 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/screenshot.png -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeViewTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/minImage.imageset/icon_smiley_bad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/TestSFGaugeView/TestSFGaugeView/Images.xcassets/minImage.imageset/icon_smiley_bad.png -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/minImage.imageset/icon_smiley_bad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/TestSFGaugeView/TestSFGaugeView/Images.xcassets/minImage.imageset/icon_smiley_bad@2x.png -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/maxImage.imageset/icon_smiley_very_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/TestSFGaugeView/TestSFGaugeView/Images.xcassets/maxImage.imageset/icon_smiley_very_good.png -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/maxImage.imageset/icon_smiley_very_good@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/TestSFGaugeView/TestSFGaugeView/Images.xcassets/maxImage.imageset/icon_smiley_very_good@2x.png -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TestSFGaugeView/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SFGaugeView (0.0.6) 3 | 4 | DEPENDENCIES: 5 | - SFGaugeView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SFGaugeView: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | SFGaugeView: 40e71d734809388af1a1d16e3c935047d65b985a 13 | 14 | COCOAPODS: 0.33.1 15 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView.xcodeproj/project.xcworkspace/xcuserdata/thomaswinkler.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simpliflow/SFGaugeView/HEAD/TestSFGaugeView/TestSFGaugeView.xcodeproj/project.xcworkspace/xcuserdata/thomaswinkler.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | Pods 20 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SFViewController.h 3 | // SFView 4 | // 5 | // Created by Thomas Winkler on 15/11/13. 6 | // Copyright (c) 2013 Thomas Winkler. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SFGaugeView.h" 11 | 12 | @interface SFViewController : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SFAppDelegate.h 3 | // TestSFGaugeView 4 | // 5 | // Created by Thomas Winkler on 23/01/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SFAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFViewXIB.h: -------------------------------------------------------------------------------- 1 | // 2 | // SFViewXIB.h 3 | // TestSFGaugeView 4 | // 5 | // Created by Thomas Winkler on 16/02/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SFGaugeView.h" 11 | 12 | @interface SFViewXIB : UIView 13 | 14 | @property (weak, nonatomic) IBOutlet SFGaugeView *graphSlider; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/minImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "icon_smiley_bad.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "icon_smiley_bad@2x.png" 12 | } 13 | ], 14 | "info" : { 15 | "version" : 1, 16 | "author" : "xcode" 17 | } 18 | } -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/maxImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "icon_smiley_very_good.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "icon_smiley_very_good@2x.png" 12 | } 13 | ], 14 | "info" : { 15 | "version" : 1, 16 | "author" : "xcode" 17 | } 18 | } -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/TestSFGaugeView-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TestSFGaugeView 4 | // 5 | // Created by Thomas Winkler on 23/01/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SFAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([SFAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SFGaugeView.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |spec| 2 | spec.name = 'SFGaugeView' 3 | spec.version = '0.0.7' 4 | spec.summary = 'Provides a gauge control for ios' 5 | spec.platform = :ios 6 | spec.license = 'MIT' 7 | spec.ios.deployment_target = '7.0' 8 | spec.authors = 'Thomas Winkler' 9 | spec.homepage = 'https://github.com/simpliflow/SFGaugeView' 10 | spec.source_files = 'SFGaugeView/*.{h,m}' 11 | spec.source = { :git => 'https://github.com/simpliflow/SFGaugeView.git', :tag => 'v0.0.7' } 12 | spec.framework = 'UIKit' 13 | spec.requires_arc = true 14 | 15 | end 16 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFViewXIB.m: -------------------------------------------------------------------------------- 1 | // 2 | // SFViewXIB.m 3 | // TestSFGaugeView 4 | // 5 | // Created by Thomas Winkler on 16/02/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import "SFViewXIB.h" 10 | 11 | @implementation SFViewXIB 12 | 13 | - (id)initWithFrame:(CGRect)frame 14 | { 15 | self = [super initWithFrame:frame]; 16 | if (self) { 17 | // Initialization code 18 | } 19 | return self; 20 | } 21 | 22 | /* 23 | // Only override drawRect: if you perform custom drawing. 24 | // An empty implementation adversely affects performance during animation. 25 | - (void)drawRect:(CGRect)rect 26 | { 27 | // Drawing code 28 | } 29 | */ 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView.xcodeproj/xcuserdata/thomaswinkler.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TestSFGaugeView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 5FF87D4618914D5E00A57B15 16 | 17 | primary 18 | 19 | 20 | 5FF87D6718914D5E00A57B15 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeViewTests/TestSFGaugeViewTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.simpliflow.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeViewTests/TestSFGaugeViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // TestSFGaugeViewTests.m 3 | // TestSFGaugeViewTests 4 | // 5 | // Created by Thomas Winkler on 23/01/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TestSFGaugeViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation TestSFGaugeViewTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /SFGaugeView/SFGaugeView.h: -------------------------------------------------------------------------------- 1 | // 2 | // SFGaugeView.h 3 | // SFGaugeView 4 | // 5 | // Created by Thomas Winkler on 15/11/13. 6 | // Copyright (c) 2013 Thomas Winkler. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SFGaugeView; 12 | 13 | @protocol SFGaugeViewDelegate 14 | 15 | @required 16 | - (void) sfGaugeView:(SFGaugeView*) gaugeView didChangeLevel:(NSInteger) level; 17 | @end 18 | 19 | @interface SFGaugeView : UIView 20 | 21 | @property (nonatomic) NSUInteger maxlevel; 22 | @property (nonatomic) NSUInteger minlevel; 23 | @property (nonatomic) UIColor *needleColor; 24 | @property (nonatomic) UIColor *bgColor; 25 | @property (nonatomic) BOOL hideLevel; 26 | @property (nonatomic) NSString *minImage; 27 | @property (nonatomic) NSString *maxImage; 28 | @property (nonatomic) BOOL autoAdjustImageColors; 29 | 30 | @property (nonatomic) NSInteger currentLevel; 31 | 32 | @property (nonatomic, weak) id delegate; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Thomas Winkler 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/TestSFGaugeView-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.simpliflow.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFViewXIB.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SFAppDelegate.m 3 | // TestSFGaugeView 4 | // 5 | // Created by Thomas Winkler on 23/01/14. 6 | // Copyright (c) 2014 Simpliflow. All rights reserved. 7 | // 8 | 9 | #import "SFAppDelegate.h" 10 | 11 | @implementation SFAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | SFGaugeView 2 | =========== 3 | A custom UIView with a gauge control (tachometer like control). 4 | Detects swipe gesture and sets the needle/level appropriately. 5 | You can customize colors, the maximum level, min/max images, etc. 6 | 7 | ![Alt text](/screenshot.png "Screenshot") 8 | 9 | Setup 10 | ----- 11 | 12 | **Installing with [CocoaPods](http://cocoapods.org)** 13 | 14 | If you're unfamiliar with CocoaPods you can check out this tutorial [here](http://www.raywenderlich.com/12139/introduction-to-cocoapods). 15 | 16 | 1. In Terminal navigate to the root of your project. 17 | 2. Run 'touch Podfile' to create the Podfile. 18 | 3. Open the Podfile using 'open -e Podfile' 19 | 4. Add the pod `SFGaugeView` to your [Podfile](https://github.com/CocoaPods/CocoaPods/wiki/A-Podfile). 20 | 21 | platform :ios, '7.0' 22 | pod 'SFGaugeView' 23 | 24 | 5. Run `pod install`. 25 | 6. Open your app's `.xcworkspace` file to launch Xcode and start using the control! 26 | 27 | Usage 28 | ----- 29 | 1. Either create SFGaugeView by dragging UIView from storyboard and change implementing class or create it programmatically 30 | 2. Create an outlet (if create via storyboard) 31 | 3. Set up parameters 32 | 33 | maxlevel = The maximum level of gauge control (unsigned int value) 34 | minlevel = The minimum level of gauge control (unsigned int value) 35 | needleColor = Color of needle 36 | bgColor = Background Color of gauge control 37 | hideLevel = If set to YES the current level is hidden 38 | minImage = An image for min level (see screenshot) 39 | maxImage = An image for max level (see screenshot) 40 | currentLevel = Sets the current Level 41 | autoAdjustImageColors = Overlays the images with needleColor (default: NO) 42 | 43 | 4. GaugeControl interaction 44 | currentLevel = Returns the current level 45 | 46 | Delegate Method 47 | --------- 48 | 49 | - (void) sfGaugeView:(SFGaugeView*) gaugeView didChangeLevel:(NSInteger) level; 50 | 51 | Author(s) 52 | ------- 53 | 54 | [Simpliflow GmbH](https://github.com/simpliflow) 55 | 56 | [Thomas Winkler](https://github.com/tomgong) 57 | 58 | Licence 59 | ------- 60 | 61 | Distributed under the MIT License. 62 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/SFViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SFViewController.h 3 | // TachometerView 4 | // 5 | // Created by Thomas Winkler on 15/11/13. 6 | // Copyright (c) 2013 Thomas Winkler. All rights reserved. 7 | // 8 | 9 | #import "SFViewController.h" 10 | #import "SFGaugeView.h" 11 | #import "SFViewXIB.h" 12 | 13 | 14 | @interface SFViewController () 15 | 16 | @property (weak, nonatomic) IBOutlet SFGaugeView *topTachometer; 17 | @property (weak, nonatomic) IBOutlet SFGaugeView *middleTachometer; 18 | @property (weak, nonatomic) IBOutlet SFGaugeView *leftTachometer; 19 | 20 | @end 21 | 22 | @implementation SFViewController 23 | 24 | - (void)viewDidLoad 25 | { 26 | 27 | [super viewDidLoad]; 28 | 29 | // Load from XIB/NIB example: 30 | // SFViewXIB* view = [[[NSBundle mainBundle] loadNibNamed:@"SFViewXIB" owner:nil options:nil] lastObject]; 31 | // view.graphSlider.bgColor = [UIColor colorWithRed:0/255.0 green:124/255.0 blue:205/255.0 alpha:1]; 32 | // view.graphSlider.needleColor = [UIColor colorWithRed:0/255.0 green:39/255.0 blue:64/255.0 alpha:1]; 33 | // view.graphSlider.hideLevel = YES; 34 | // 35 | // view.graphSlider.maxlevel = 115; // initial 36 | // view.graphSlider.currentLevel = 0; 37 | // 38 | // view.frame = self.view.frame; 39 | // [self.view addSubview:view]; 40 | 41 | self.topTachometer.bgColor = [UIColor colorWithRed:0/255.0 green:124/255.0 blue:205/255.0 alpha:1]; 42 | self.topTachometer.needleColor = [UIColor colorWithRed:0/255.0 green:39/255.0 blue:64/255.0 alpha:1]; 43 | self.topTachometer.hideLevel = YES; 44 | self.topTachometer.minImage = @"minImage"; 45 | self.topTachometer.maxImage = @"maxImage"; 46 | self.topTachometer.autoAdjustImageColors = YES; 47 | 48 | 49 | self.middleTachometer.bgColor = [UIColor colorWithRed:102/255.0 green:175/255.0 blue:102/255.0 alpha:1]; 50 | self.middleTachometer.needleColor = [UIColor colorWithRed:27/255.0 green:103/255.0 blue:107/255.0 alpha:1]; 51 | self.middleTachometer.maxlevel = 10; 52 | self.middleTachometer.minlevel = 1; 53 | self.middleTachometer.minImage = @"minImage"; 54 | self.middleTachometer.maxImage = @"maxImage"; 55 | self.middleTachometer.currentLevel = 2; 56 | self.middleTachometer.delegate = self; 57 | 58 | self.leftTachometer.maxlevel = 8; 59 | self.leftTachometer.minlevel = 0; 60 | self.leftTachometer.bgColor = [UIColor colorWithRed:249/255.0 green:203/255.0 blue:0/255.0 alpha:1]; 61 | self.leftTachometer.needleColor = [UIColor colorWithRed:247/255.0 green:164/255.0 blue:2/255.0 alpha:1]; 62 | 63 | } 64 | 65 | - (void) sfGaugeView:(SFGaugeView *)gaugeView didChangeLevel:(NSInteger)level 66 | { 67 | NSLog(@"Value of middle tachometer changed to %ld", (long)level); 68 | } 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView.xcodeproj/xcuserdata/thomaswinkler.xcuserdatad/xcschemes/TestSFGaugeView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /SFGaugeView/SFGaugeView.m: -------------------------------------------------------------------------------- 1 | // 2 | // SFGaugeView.m 3 | // SFGaugeView 4 | // 5 | // Created by Thomas Winkler on 15/11/13. 6 | // Copyright (c) 2013 Thomas Winkler. All rights reserved. 7 | // 8 | 9 | #import "SFGaugeView.h" 10 | 11 | @interface SFGaugeView() 12 | 13 | @property(nonatomic) CGFloat needleRadius; 14 | @property(nonatomic) CGFloat bgRadius; 15 | @property(nonatomic) CGFloat currentRadian; 16 | @property(nonatomic) NSInteger oldLevel; 17 | @property(nonatomic, readonly) NSUInteger scale; 18 | @end 19 | 20 | @implementation SFGaugeView 21 | 22 | @synthesize minlevel = _minlevel; 23 | 24 | static const CGFloat CUTOFF = 0.5; 25 | 26 | #pragma mark init stuff 27 | 28 | - (id) init 29 | { 30 | self = [super init]; 31 | [self setup]; 32 | 33 | return self; 34 | } 35 | 36 | - (id)initWithFrame:(CGRect)frame 37 | { 38 | self = [super initWithFrame:frame]; 39 | if (self) { 40 | [self setup]; 41 | } 42 | return self; 43 | } 44 | 45 | - (void)setup 46 | { 47 | self.opaque = NO; 48 | self.contentMode = UIViewContentModeRedraw; 49 | 50 | self.currentRadian = 0; 51 | [self addGestureRecognizer:[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]]; 52 | } 53 | 54 | - (void) awakeFromNib 55 | { 56 | [self setup]; 57 | } 58 | 59 | #pragma mark drawing 60 | 61 | - (void)drawRect:(CGRect)rect 62 | { 63 | [self drawBg]; 64 | [self drawNeedle]; 65 | [self drawLabels]; 66 | [self drawImageLabels]; 67 | } 68 | 69 | - (void) drawImageLabels 70 | { 71 | if (self.minImage && self.maxImage) { 72 | 73 | UIImage *badImg; 74 | UIImage *goodImg; 75 | 76 | if (self.autoAdjustImageColors) { 77 | badImg = [self imageNamed:self.minImage withColor:self.needleColor drawAsOverlay:NO]; 78 | goodImg = [self imageNamed:self.maxImage withColor:self.needleColor drawAsOverlay:NO]; 79 | } else { 80 | badImg = [UIImage imageNamed:self.minImage]; 81 | goodImg = [UIImage imageNamed: self.maxImage]; 82 | } 83 | 84 | CGFloat scaleFactor = (self.bounds.size.width / badImg.size.width)/6 ; 85 | 86 | [badImg drawInRect:CGRectMake([self centerX] - self.bgRadius, [self centerY] - badImg.size.height * scaleFactor, badImg.size.width * scaleFactor, badImg.size.height * scaleFactor)]; 87 | [goodImg drawInRect:CGRectMake([self centerX] + self.bgRadius - (goodImg.size.width * scaleFactor), [self centerY] - goodImg.size.height * scaleFactor, goodImg.size.width * scaleFactor, goodImg.size.height * scaleFactor)]; 88 | } 89 | } 90 | 91 | - (void) drawLabels 92 | { 93 | CGFloat fontSize = self.bounds.size.width/18; 94 | UIFont* font = [UIFont fontWithName:@"Arial" size:fontSize]; 95 | UIColor* textColor = [self needleColor]; 96 | 97 | 98 | NSDictionary* stringAttrs = @{ NSFontAttributeName : font, NSForegroundColorAttributeName : textColor }; 99 | 100 | if (!self.hideLevel) { 101 | fontSize = [self needleRadius] + 5; 102 | font = [UIFont fontWithName:@"Arial" size:fontSize]; 103 | textColor = [self bgColor]; 104 | 105 | stringAttrs = @{ NSFontAttributeName : font, NSForegroundColorAttributeName : textColor }; 106 | NSAttributedString* levelStr = [[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"%lu", (unsigned long)[self currentLevel]] attributes:stringAttrs]; 107 | 108 | CGPoint levelStrPoint = CGPointMake([self center].x - levelStr.size.width/2, [self center].y - levelStr.size.height/2); 109 | [levelStr drawAtPoint:levelStrPoint]; 110 | } 111 | } 112 | 113 | - (void) drawBg 114 | { 115 | CGFloat starttime = M_PI + CUTOFF; 116 | CGFloat endtime = 2 * M_PI - CUTOFF; 117 | 118 | CGFloat bgEndAngle = (3 * M_PI_2) + self.currentRadian; 119 | 120 | if (bgEndAngle > starttime) { 121 | UIBezierPath *bgPath = [UIBezierPath bezierPath]; 122 | [bgPath moveToPoint:[self center]]; 123 | [bgPath addArcWithCenter:[self center] radius:self.bgRadius startAngle:starttime endAngle: (3 * M_PI_2) + self.currentRadian clockwise:YES]; 124 | [bgPath addLineToPoint:[self center]]; 125 | [[self bgColor] set]; 126 | [bgPath fill]; 127 | } 128 | 129 | UIBezierPath *bgPath2 = [UIBezierPath bezierPath]; 130 | [bgPath2 moveToPoint:[self center]]; 131 | [bgPath2 addArcWithCenter:[self center] radius:self.bgRadius startAngle:(3 * M_PI_2) + self.currentRadian endAngle:endtime clockwise:YES]; 132 | [[self lighterColorForColor:[self bgColor]] set]; 133 | [bgPath2 fill]; 134 | 135 | UIBezierPath *bgPathInner = [UIBezierPath bezierPath]; 136 | [bgPathInner moveToPoint:[self center]]; 137 | 138 | CGFloat innerRadius = self.bgRadius - (self.bgRadius * 0.3); 139 | [bgPathInner addArcWithCenter:[self center] radius:innerRadius startAngle:starttime endAngle:endtime clockwise:YES]; 140 | [bgPathInner addLineToPoint:[self center]]; 141 | 142 | self.backgroundColor ? [self.backgroundColor set] : [[UIColor whiteColor] set]; 143 | [bgPathInner stroke]; 144 | [bgPathInner fill]; 145 | } 146 | 147 | - (UIImage *)imageNamed:(NSString *)name withColor:(UIColor *)color drawAsOverlay:(BOOL)overlay{ 148 | // load the image 149 | UIImage *img = [UIImage imageNamed:name]; 150 | 151 | // begin a new image context, to draw our colored image onto 152 | UIGraphicsBeginImageContextWithOptions(img.size, NO, [[UIScreen mainScreen] scale]); 153 | 154 | // get a reference to that context we created 155 | CGContextRef context = UIGraphicsGetCurrentContext(); 156 | 157 | // set the fill color 158 | [color setFill]; 159 | 160 | // translate/flip the graphics context (for transforming from CG* coords to UI* coords 161 | CGContextTranslateCTM(context, 0, img.size.height); 162 | CGContextScaleCTM(context, 1.0, -1.0); 163 | 164 | // set the blend mode to overlay, and the original image 165 | CGContextSetBlendMode(context, kCGBlendModeOverlay); 166 | CGRect rect = CGRectMake(0, 0, img.size.width, img.size.height); 167 | if(overlay) CGContextDrawImage(context, rect, img.CGImage); 168 | 169 | // set a mask that matches the shape of the image, then draw (overlay) a colored rectangle 170 | CGContextClipToMask(context, rect, img.CGImage); 171 | CGContextAddRect(context, rect); 172 | CGContextDrawPath(context,kCGPathFill); 173 | 174 | // generate a new UIImage from the graphics context we drew onto 175 | UIImage *coloredImg = UIGraphicsGetImageFromCurrentImageContext(); 176 | UIGraphicsEndImageContext(); 177 | 178 | //return the color-burned image 179 | return coloredImg; 180 | } 181 | 182 | - (void) drawNeedle 183 | { 184 | CGFloat distance = [self bgRadius] + ([self bgRadius] * 0.1); 185 | CGFloat starttime = 0; 186 | CGFloat endtime = M_PI; 187 | CGFloat topSpace = (distance * 0.1)/6; 188 | 189 | CGPoint center = [self center]; 190 | 191 | CGPoint topPoint = CGPointMake([self center].x, [self center].y - distance); 192 | CGPoint topPoint1 = CGPointMake([self center].x - topSpace, [self center].y - distance + (distance * 0.1)); 193 | CGPoint topPoint2 = CGPointMake([self center].x + topSpace, [self center].y - distance + (distance * 0.1)); 194 | 195 | CGPoint finishPoint = CGPointMake([self center].x + self.needleRadius, [self center].y); 196 | 197 | UIBezierPath *needlePath = [UIBezierPath bezierPath]; //empty path 198 | [needlePath moveToPoint:center]; 199 | CGPoint next; 200 | next.x = center.x + self.needleRadius * cos(starttime); 201 | next.y = center.y + self.needleRadius * sin(starttime); 202 | [needlePath addLineToPoint:next]; //go one end of arc 203 | [needlePath addArcWithCenter:center radius:self.needleRadius startAngle:starttime endAngle:endtime clockwise:YES]; //add the arc 204 | 205 | [needlePath addLineToPoint:topPoint1]; 206 | 207 | [needlePath addQuadCurveToPoint:topPoint2 controlPoint:topPoint]; 208 | 209 | [needlePath addLineToPoint:finishPoint]; 210 | 211 | CGAffineTransform translate = CGAffineTransformMakeTranslation(-1 * (self.bounds.origin.x + [self center].x), -1 * (self.bounds.origin.y + [self center].y)); 212 | [needlePath applyTransform:translate]; 213 | 214 | CGAffineTransform rotate = CGAffineTransformMakeRotation(self.currentRadian); 215 | [needlePath applyTransform:rotate]; 216 | 217 | translate = CGAffineTransformMakeTranslation((self.bounds.origin.x + [self center].x), (self.bounds.origin.y + [self center].y)); 218 | [needlePath applyTransform:translate]; 219 | 220 | [[self needleColor] set]; 221 | [needlePath fill]; 222 | } 223 | 224 | - (UIColor *)lighterColorForColor:(UIColor *)c 225 | { 226 | CGFloat r, g, b, a; 227 | if ([c getRed:&r green:&g blue:&b alpha:&a]) 228 | return [UIColor colorWithRed:MIN(r + 0.1, 1.0) 229 | green:MIN(g + 0.1, 1.0) 230 | blue:MIN(b + 0.1, 1.0) 231 | alpha:a]; 232 | return nil; 233 | } 234 | 235 | #pragma mark pan gesture recognizer 236 | 237 | - (void) handlePan: (UIPanGestureRecognizer *) gesture 238 | { 239 | CGPoint currentPosition = [gesture locationInView:self]; 240 | 241 | if (gesture.state == UIGestureRecognizerStateChanged) 242 | { 243 | // NSLog (@"[%f,%f]",currentPosition.x, currentPosition.y); 244 | self.currentRadian = [self calculateRadian:currentPosition]; 245 | [self setNeedsDisplay]; 246 | [self currentLevel]; 247 | } 248 | } 249 | 250 | #pragma mark calculation stuff 251 | 252 | - (CGFloat)calculateRadian: (CGPoint) pos 253 | { 254 | CGPoint tmpPoint = CGPointMake(pos.x, [self center].y); 255 | 256 | // return zero if needle in center 257 | if (pos.x == [self center].x) { 258 | return 0; 259 | } 260 | 261 | if (pos.y > [self center].y) { 262 | return self.currentRadian; 263 | } 264 | 265 | // calculate distance between pos and center 266 | CGFloat p12 = [self calculateDistanceFrom:pos to:[self center]]; 267 | 268 | // calculate distance between pos and tmpPoint 269 | CGFloat p23 = [self calculateDistanceFrom:pos to: tmpPoint]; 270 | 271 | // cacluate distance between tmpPont and center 272 | CGFloat p13 = [self calculateDistanceFrom:tmpPoint to: [self center]]; 273 | 274 | CGFloat result = M_PI_2 - acos(((p12 * p12) + (p13 * p13) - (p23 * p23))/(2 * p12 * p13)); 275 | 276 | if (pos.x <= [self center].x) { 277 | result = -result; 278 | } 279 | 280 | if (result > (M_PI_2 - CUTOFF)) { 281 | return M_PI_2 - CUTOFF; 282 | } 283 | 284 | if (result < (-M_PI_2 + CUTOFF)) { 285 | return -M_PI_2 + CUTOFF; 286 | } 287 | 288 | // NSLog(@"Calculated Angle: %f", result); 289 | 290 | return result; 291 | } 292 | 293 | - (CGFloat)calculateDistanceFrom: (CGPoint) p1 to: (CGPoint) p2 294 | { 295 | CGFloat dx = p2.x - p1.x; 296 | CGFloat dy = p2.y - p1.y; 297 | CGFloat distance = sqrt(dx*dx + dy*dy); 298 | return distance; 299 | } 300 | 301 | # pragma mark current level 302 | - (NSInteger) currentLevel 303 | { 304 | NSInteger level = -1; 305 | 306 | CGFloat levelSection = (M_PI - (CUTOFF * 2)) / self.scale; 307 | CGFloat currentSection = -M_PI_2 + CUTOFF; 308 | 309 | for (int i=1; i<=self.scale;i++) { 310 | // NSLog(@"[%fl, %fl] = %fl", currentSection, (currentSection + levelSection), self.currentRadian); 311 | if (self.currentRadian >= currentSection && self.currentRadian < (currentSection + levelSection)) { 312 | level = i; 313 | break; 314 | } 315 | currentSection += levelSection; 316 | } 317 | 318 | if (self.currentRadian >= (M_PI_2 - CUTOFF)) { 319 | level = self.scale + 1; 320 | } 321 | 322 | level = level + self.minlevel - 1; 323 | 324 | // NSLog(@"Current Level is %lu", (unsigned long)level); 325 | if (self.oldLevel != level && self.delegate && [self.delegate respondsToSelector:@selector(sfGaugeView:didChangeLevel:)]) { 326 | [self.delegate sfGaugeView:self didChangeLevel:level]; 327 | } 328 | 329 | self.oldLevel = level; 330 | return level; 331 | } 332 | 333 | - (void) setCurrentLevel:(NSInteger)currentLevel 334 | { 335 | if (currentLevel >= self.minlevel && currentLevel <= self.maxlevel) { 336 | 337 | self.oldLevel = currentLevel; 338 | 339 | CGFloat range = M_PI - (CUTOFF * 2); 340 | if (currentLevel != self.scale/2) { 341 | self.currentRadian = (currentLevel * range)/self.scale - (range/2); 342 | } else { 343 | self.currentRadian = 0.f; 344 | } 345 | 346 | // NSLog(@"Current Radian is %f", self.currentRadian); 347 | [self setNeedsDisplay]; 348 | } 349 | } 350 | 351 | #pragma mark custom getter/setter 352 | 353 | - (CGPoint)center 354 | { 355 | return CGPointMake([self centerX], [self centerY]); 356 | } 357 | 358 | - (CGFloat)centerY 359 | { 360 | return self.bounds.size.height - (self.bounds.size.height * 0.2); 361 | } 362 | 363 | - (CGFloat)centerX 364 | { 365 | return self.bounds.size.width/2; 366 | } 367 | 368 | - (UIColor *) needleColor 369 | { 370 | if (!_needleColor) { 371 | _needleColor = [UIColor colorWithRed:76/255.0 green:177/255.0 blue:88/255.0 alpha:1]; 372 | } 373 | 374 | return _needleColor; 375 | } 376 | 377 | - (UIColor *) bgColor 378 | { 379 | if (!_bgColor) { 380 | _bgColor = [UIColor colorWithRed:211/255.0 green:211/255.0 blue:211/255.0 alpha:1]; 381 | } 382 | 383 | return _bgColor; 384 | } 385 | 386 | - (CGFloat) needleRadius 387 | { 388 | if (!_needleRadius) { 389 | _needleRadius = self.bounds.size.height * 0.08; 390 | } 391 | 392 | return _needleRadius; 393 | } 394 | 395 | - (NSUInteger) maxlevel 396 | { 397 | if (!_maxlevel) { 398 | _maxlevel = 10; 399 | } 400 | 401 | return _maxlevel; 402 | } 403 | 404 | - (void)setMinlevel:(NSUInteger)minlevel 405 | { 406 | _minlevel = minlevel; 407 | } 408 | 409 | - (CGFloat) bgRadius 410 | { 411 | if (!_bgRadius) { 412 | _bgRadius = [self centerX] - ([self centerX] * 0.1); 413 | } 414 | 415 | return _bgRadius; 416 | } 417 | 418 | - (NSUInteger)scale { 419 | return self.maxlevel - self.minlevel; 420 | } 421 | 422 | @end 423 | -------------------------------------------------------------------------------- /TestSFGaugeView/TestSFGaugeView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 06B68F62380347A692F3D831 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ACE04435D1E643C38E4CC999 /* libPods.a */; }; 11 | 5F6636B818B0ADFB00F54090 /* SFViewXIB.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5F6636B718B0ADFB00F54090 /* SFViewXIB.xib */; }; 12 | 5F6636BB18B0AE3F00F54090 /* SFViewXIB.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F6636BA18B0AE3F00F54090 /* SFViewXIB.m */; }; 13 | 5FF87D4B18914D5E00A57B15 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D4A18914D5E00A57B15 /* Foundation.framework */; }; 14 | 5FF87D4D18914D5E00A57B15 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D4C18914D5E00A57B15 /* CoreGraphics.framework */; }; 15 | 5FF87D4F18914D5E00A57B15 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D4E18914D5E00A57B15 /* UIKit.framework */; }; 16 | 5FF87D5518914D5E00A57B15 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5FF87D5318914D5E00A57B15 /* InfoPlist.strings */; }; 17 | 5FF87D5718914D5E00A57B15 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FF87D5618914D5E00A57B15 /* main.m */; }; 18 | 5FF87D5B18914D5E00A57B15 /* SFAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FF87D5A18914D5E00A57B15 /* SFAppDelegate.m */; }; 19 | 5FF87D5E18914D5E00A57B15 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5FF87D5C18914D5E00A57B15 /* Main.storyboard */; }; 20 | 5FF87D6318914D5E00A57B15 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5FF87D6218914D5E00A57B15 /* Images.xcassets */; }; 21 | 5FF87D6A18914D5E00A57B15 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D6918914D5E00A57B15 /* XCTest.framework */; }; 22 | 5FF87D6B18914D5E00A57B15 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D4A18914D5E00A57B15 /* Foundation.framework */; }; 23 | 5FF87D6C18914D5E00A57B15 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FF87D4E18914D5E00A57B15 /* UIKit.framework */; }; 24 | 5FF87D7418914D5E00A57B15 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5FF87D7218914D5E00A57B15 /* InfoPlist.strings */; }; 25 | 5FF87D7618914D5E00A57B15 /* TestSFGaugeViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FF87D7518914D5E00A57B15 /* TestSFGaugeViewTests.m */; }; 26 | 5FFDE76C18914E900079917F /* SFViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FFDE76B18914E900079917F /* SFViewController.m */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 5FF87D6D18914D5E00A57B15 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 5FF87D3F18914D5E00A57B15 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 5FF87D4618914D5E00A57B15; 35 | remoteInfo = TestSFGaugeView; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 5F6636B718B0ADFB00F54090 /* SFViewXIB.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SFViewXIB.xib; sourceTree = ""; }; 41 | 5F6636B918B0AE3F00F54090 /* SFViewXIB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SFViewXIB.h; sourceTree = ""; }; 42 | 5F6636BA18B0AE3F00F54090 /* SFViewXIB.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SFViewXIB.m; sourceTree = ""; }; 43 | 5FF87D4718914D5E00A57B15 /* TestSFGaugeView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestSFGaugeView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 5FF87D4A18914D5E00A57B15 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 45 | 5FF87D4C18914D5E00A57B15 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; 46 | 5FF87D4E18914D5E00A57B15 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 47 | 5FF87D5218914D5E00A57B15 /* TestSFGaugeView-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestSFGaugeView-Info.plist"; sourceTree = ""; }; 48 | 5FF87D5418914D5E00A57B15 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 49 | 5FF87D5618914D5E00A57B15 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 50 | 5FF87D5818914D5E00A57B15 /* TestSFGaugeView-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TestSFGaugeView-Prefix.pch"; sourceTree = ""; }; 51 | 5FF87D5918914D5E00A57B15 /* SFAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SFAppDelegate.h; sourceTree = ""; }; 52 | 5FF87D5A18914D5E00A57B15 /* SFAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SFAppDelegate.m; sourceTree = ""; }; 53 | 5FF87D5D18914D5E00A57B15 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | 5FF87D6218914D5E00A57B15 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 55 | 5FF87D6818914D5E00A57B15 /* TestSFGaugeViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TestSFGaugeViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 5FF87D6918914D5E00A57B15 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 57 | 5FF87D7118914D5E00A57B15 /* TestSFGaugeViewTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestSFGaugeViewTests-Info.plist"; sourceTree = ""; }; 58 | 5FF87D7318914D5E00A57B15 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 59 | 5FF87D7518914D5E00A57B15 /* TestSFGaugeViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestSFGaugeViewTests.m; sourceTree = ""; }; 60 | 5FFDE76A18914E900079917F /* SFViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SFViewController.h; sourceTree = ""; }; 61 | 5FFDE76B18914E900079917F /* SFViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SFViewController.m; sourceTree = ""; }; 62 | ACE04435D1E643C38E4CC999 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | B4F88F8C74DD4A548B52D7EA /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 5FF87D4418914D5E00A57B15 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 5FF87D4D18914D5E00A57B15 /* CoreGraphics.framework in Frameworks */, 72 | 5FF87D4F18914D5E00A57B15 /* UIKit.framework in Frameworks */, 73 | 5FF87D4B18914D5E00A57B15 /* Foundation.framework in Frameworks */, 74 | 06B68F62380347A692F3D831 /* libPods.a in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | 5FF87D6518914D5E00A57B15 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | 5FF87D6A18914D5E00A57B15 /* XCTest.framework in Frameworks */, 83 | 5FF87D6C18914D5E00A57B15 /* UIKit.framework in Frameworks */, 84 | 5FF87D6B18914D5E00A57B15 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | /* End PBXFrameworksBuildPhase section */ 89 | 90 | /* Begin PBXGroup section */ 91 | 5FF87D3E18914D5E00A57B15 = { 92 | isa = PBXGroup; 93 | children = ( 94 | 5FF87D5018914D5E00A57B15 /* TestSFGaugeView */, 95 | 5FF87D6F18914D5E00A57B15 /* TestSFGaugeViewTests */, 96 | 5FF87D4918914D5E00A57B15 /* Frameworks */, 97 | 5FF87D4818914D5E00A57B15 /* Products */, 98 | B4F88F8C74DD4A548B52D7EA /* Pods.xcconfig */, 99 | ); 100 | sourceTree = ""; 101 | }; 102 | 5FF87D4818914D5E00A57B15 /* Products */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 5FF87D4718914D5E00A57B15 /* TestSFGaugeView.app */, 106 | 5FF87D6818914D5E00A57B15 /* TestSFGaugeViewTests.xctest */, 107 | ); 108 | name = Products; 109 | sourceTree = ""; 110 | }; 111 | 5FF87D4918914D5E00A57B15 /* Frameworks */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 5FF87D4A18914D5E00A57B15 /* Foundation.framework */, 115 | 5FF87D4C18914D5E00A57B15 /* CoreGraphics.framework */, 116 | 5FF87D4E18914D5E00A57B15 /* UIKit.framework */, 117 | 5FF87D6918914D5E00A57B15 /* XCTest.framework */, 118 | ACE04435D1E643C38E4CC999 /* libPods.a */, 119 | ); 120 | name = Frameworks; 121 | sourceTree = ""; 122 | }; 123 | 5FF87D5018914D5E00A57B15 /* TestSFGaugeView */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 5FFDE76A18914E900079917F /* SFViewController.h */, 127 | 5FFDE76B18914E900079917F /* SFViewController.m */, 128 | 5FF87D5918914D5E00A57B15 /* SFAppDelegate.h */, 129 | 5FF87D5A18914D5E00A57B15 /* SFAppDelegate.m */, 130 | 5FF87D5C18914D5E00A57B15 /* Main.storyboard */, 131 | 5FF87D6218914D5E00A57B15 /* Images.xcassets */, 132 | 5FF87D5118914D5E00A57B15 /* Supporting Files */, 133 | 5F6636B718B0ADFB00F54090 /* SFViewXIB.xib */, 134 | 5F6636B918B0AE3F00F54090 /* SFViewXIB.h */, 135 | 5F6636BA18B0AE3F00F54090 /* SFViewXIB.m */, 136 | ); 137 | path = TestSFGaugeView; 138 | sourceTree = ""; 139 | }; 140 | 5FF87D5118914D5E00A57B15 /* Supporting Files */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 5FF87D5218914D5E00A57B15 /* TestSFGaugeView-Info.plist */, 144 | 5FF87D5318914D5E00A57B15 /* InfoPlist.strings */, 145 | 5FF87D5618914D5E00A57B15 /* main.m */, 146 | 5FF87D5818914D5E00A57B15 /* TestSFGaugeView-Prefix.pch */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | 5FF87D6F18914D5E00A57B15 /* TestSFGaugeViewTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 5FF87D7518914D5E00A57B15 /* TestSFGaugeViewTests.m */, 155 | 5FF87D7018914D5E00A57B15 /* Supporting Files */, 156 | ); 157 | path = TestSFGaugeViewTests; 158 | sourceTree = ""; 159 | }; 160 | 5FF87D7018914D5E00A57B15 /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 5FF87D7118914D5E00A57B15 /* TestSFGaugeViewTests-Info.plist */, 164 | 5FF87D7218914D5E00A57B15 /* InfoPlist.strings */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | /* End PBXGroup section */ 170 | 171 | /* Begin PBXNativeTarget section */ 172 | 5FF87D4618914D5E00A57B15 /* TestSFGaugeView */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = 5FF87D7918914D5E00A57B15 /* Build configuration list for PBXNativeTarget "TestSFGaugeView" */; 175 | buildPhases = ( 176 | 6633F5DC6727468BB502F7D6 /* Check Pods Manifest.lock */, 177 | 5FF87D4318914D5E00A57B15 /* Sources */, 178 | 5FF87D4418914D5E00A57B15 /* Frameworks */, 179 | 5FF87D4518914D5E00A57B15 /* Resources */, 180 | 4AB38071ABBF40C6890874C4 /* Copy Pods Resources */, 181 | ); 182 | buildRules = ( 183 | ); 184 | dependencies = ( 185 | ); 186 | name = TestSFGaugeView; 187 | productName = TestSFGaugeView; 188 | productReference = 5FF87D4718914D5E00A57B15 /* TestSFGaugeView.app */; 189 | productType = "com.apple.product-type.application"; 190 | }; 191 | 5FF87D6718914D5E00A57B15 /* TestSFGaugeViewTests */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 5FF87D7C18914D5E00A57B15 /* Build configuration list for PBXNativeTarget "TestSFGaugeViewTests" */; 194 | buildPhases = ( 195 | 5FF87D6418914D5E00A57B15 /* Sources */, 196 | 5FF87D6518914D5E00A57B15 /* Frameworks */, 197 | 5FF87D6618914D5E00A57B15 /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 5FF87D6E18914D5E00A57B15 /* PBXTargetDependency */, 203 | ); 204 | name = TestSFGaugeViewTests; 205 | productName = TestSFGaugeViewTests; 206 | productReference = 5FF87D6818914D5E00A57B15 /* TestSFGaugeViewTests.xctest */; 207 | productType = "com.apple.product-type.bundle.unit-test"; 208 | }; 209 | /* End PBXNativeTarget section */ 210 | 211 | /* Begin PBXProject section */ 212 | 5FF87D3F18914D5E00A57B15 /* Project object */ = { 213 | isa = PBXProject; 214 | attributes = { 215 | CLASSPREFIX = SF; 216 | LastUpgradeCheck = 0510; 217 | ORGANIZATIONNAME = Simpliflow; 218 | TargetAttributes = { 219 | 5FF87D6718914D5E00A57B15 = { 220 | TestTargetID = 5FF87D4618914D5E00A57B15; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 5FF87D4218914D5E00A57B15 /* Build configuration list for PBXProject "TestSFGaugeView" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | en, 230 | Base, 231 | ); 232 | mainGroup = 5FF87D3E18914D5E00A57B15; 233 | productRefGroup = 5FF87D4818914D5E00A57B15 /* Products */; 234 | projectDirPath = ""; 235 | projectRoot = ""; 236 | targets = ( 237 | 5FF87D4618914D5E00A57B15 /* TestSFGaugeView */, 238 | 5FF87D6718914D5E00A57B15 /* TestSFGaugeViewTests */, 239 | ); 240 | }; 241 | /* End PBXProject section */ 242 | 243 | /* Begin PBXResourcesBuildPhase section */ 244 | 5FF87D4518914D5E00A57B15 /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 5FF87D6318914D5E00A57B15 /* Images.xcassets in Resources */, 249 | 5F6636B818B0ADFB00F54090 /* SFViewXIB.xib in Resources */, 250 | 5FF87D5518914D5E00A57B15 /* InfoPlist.strings in Resources */, 251 | 5FF87D5E18914D5E00A57B15 /* Main.storyboard in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 5FF87D6618914D5E00A57B15 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | 5FF87D7418914D5E00A57B15 /* InfoPlist.strings in Resources */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXResourcesBuildPhase section */ 264 | 265 | /* Begin PBXShellScriptBuildPhase section */ 266 | 4AB38071ABBF40C6890874C4 /* Copy Pods Resources */ = { 267 | isa = PBXShellScriptBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | ); 271 | inputPaths = ( 272 | ); 273 | name = "Copy Pods Resources"; 274 | outputPaths = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | shellPath = /bin/sh; 278 | shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; 279 | showEnvVarsInLog = 0; 280 | }; 281 | 6633F5DC6727468BB502F7D6 /* Check Pods Manifest.lock */ = { 282 | isa = PBXShellScriptBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | ); 286 | inputPaths = ( 287 | ); 288 | name = "Check Pods Manifest.lock"; 289 | outputPaths = ( 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | shellPath = /bin/sh; 293 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 294 | showEnvVarsInLog = 0; 295 | }; 296 | /* End PBXShellScriptBuildPhase section */ 297 | 298 | /* Begin PBXSourcesBuildPhase section */ 299 | 5FF87D4318914D5E00A57B15 /* Sources */ = { 300 | isa = PBXSourcesBuildPhase; 301 | buildActionMask = 2147483647; 302 | files = ( 303 | 5FFDE76C18914E900079917F /* SFViewController.m in Sources */, 304 | 5F6636BB18B0AE3F00F54090 /* SFViewXIB.m in Sources */, 305 | 5FF87D5718914D5E00A57B15 /* main.m in Sources */, 306 | 5FF87D5B18914D5E00A57B15 /* SFAppDelegate.m in Sources */, 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | 5FF87D6418914D5E00A57B15 /* Sources */ = { 311 | isa = PBXSourcesBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | 5FF87D7618914D5E00A57B15 /* TestSFGaugeViewTests.m in Sources */, 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | }; 318 | /* End PBXSourcesBuildPhase section */ 319 | 320 | /* Begin PBXTargetDependency section */ 321 | 5FF87D6E18914D5E00A57B15 /* PBXTargetDependency */ = { 322 | isa = PBXTargetDependency; 323 | target = 5FF87D4618914D5E00A57B15 /* TestSFGaugeView */; 324 | targetProxy = 5FF87D6D18914D5E00A57B15 /* PBXContainerItemProxy */; 325 | }; 326 | /* End PBXTargetDependency section */ 327 | 328 | /* Begin PBXVariantGroup section */ 329 | 5FF87D5318914D5E00A57B15 /* InfoPlist.strings */ = { 330 | isa = PBXVariantGroup; 331 | children = ( 332 | 5FF87D5418914D5E00A57B15 /* en */, 333 | ); 334 | name = InfoPlist.strings; 335 | sourceTree = ""; 336 | }; 337 | 5FF87D5C18914D5E00A57B15 /* Main.storyboard */ = { 338 | isa = PBXVariantGroup; 339 | children = ( 340 | 5FF87D5D18914D5E00A57B15 /* Base */, 341 | ); 342 | name = Main.storyboard; 343 | sourceTree = ""; 344 | }; 345 | 5FF87D7218914D5E00A57B15 /* InfoPlist.strings */ = { 346 | isa = PBXVariantGroup; 347 | children = ( 348 | 5FF87D7318914D5E00A57B15 /* en */, 349 | ); 350 | name = InfoPlist.strings; 351 | sourceTree = ""; 352 | }; 353 | /* End PBXVariantGroup section */ 354 | 355 | /* Begin XCBuildConfiguration section */ 356 | 5FF87D7718914D5E00A57B15 /* Debug */ = { 357 | isa = XCBuildConfiguration; 358 | buildSettings = { 359 | ALWAYS_SEARCH_USER_PATHS = NO; 360 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 361 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 362 | CLANG_CXX_LIBRARY = "libc++"; 363 | CLANG_ENABLE_MODULES = YES; 364 | CLANG_ENABLE_OBJC_ARC = YES; 365 | CLANG_WARN_BOOL_CONVERSION = YES; 366 | CLANG_WARN_CONSTANT_CONVERSION = YES; 367 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 368 | CLANG_WARN_EMPTY_BODY = YES; 369 | CLANG_WARN_ENUM_CONVERSION = YES; 370 | CLANG_WARN_INT_CONVERSION = YES; 371 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 372 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 373 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 374 | COPY_PHASE_STRIP = NO; 375 | GCC_C_LANGUAGE_STANDARD = gnu99; 376 | GCC_DYNAMIC_NO_PIC = NO; 377 | GCC_OPTIMIZATION_LEVEL = 0; 378 | GCC_PREPROCESSOR_DEFINITIONS = ( 379 | "DEBUG=1", 380 | "$(inherited)", 381 | ); 382 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 383 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 384 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 385 | GCC_WARN_UNDECLARED_SELECTOR = YES; 386 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 387 | GCC_WARN_UNUSED_FUNCTION = YES; 388 | GCC_WARN_UNUSED_VARIABLE = YES; 389 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 390 | ONLY_ACTIVE_ARCH = YES; 391 | SDKROOT = iphoneos; 392 | }; 393 | name = Debug; 394 | }; 395 | 5FF87D7818914D5E00A57B15 /* Release */ = { 396 | isa = XCBuildConfiguration; 397 | buildSettings = { 398 | ALWAYS_SEARCH_USER_PATHS = NO; 399 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 401 | CLANG_CXX_LIBRARY = "libc++"; 402 | CLANG_ENABLE_MODULES = YES; 403 | CLANG_ENABLE_OBJC_ARC = YES; 404 | CLANG_WARN_BOOL_CONVERSION = YES; 405 | CLANG_WARN_CONSTANT_CONVERSION = YES; 406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 407 | CLANG_WARN_EMPTY_BODY = YES; 408 | CLANG_WARN_ENUM_CONVERSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 412 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 413 | COPY_PHASE_STRIP = YES; 414 | ENABLE_NS_ASSERTIONS = NO; 415 | GCC_C_LANGUAGE_STANDARD = gnu99; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 423 | SDKROOT = iphoneos; 424 | VALIDATE_PRODUCT = YES; 425 | }; 426 | name = Release; 427 | }; 428 | 5FF87D7A18914D5E00A57B15 /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | baseConfigurationReference = B4F88F8C74DD4A548B52D7EA /* Pods.xcconfig */; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 434 | FRAMEWORK_SEARCH_PATHS = ( 435 | "$(inherited)", 436 | "$(DEVELOPER_FRAMEWORKS_DIR)", 437 | ); 438 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 439 | GCC_PREFIX_HEADER = "TestSFGaugeView/TestSFGaugeView-Prefix.pch"; 440 | INFOPLIST_FILE = "TestSFGaugeView/TestSFGaugeView-Info.plist"; 441 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 442 | PRODUCT_NAME = "$(TARGET_NAME)"; 443 | WRAPPER_EXTENSION = app; 444 | }; 445 | name = Debug; 446 | }; 447 | 5FF87D7B18914D5E00A57B15 /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | baseConfigurationReference = B4F88F8C74DD4A548B52D7EA /* Pods.xcconfig */; 450 | buildSettings = { 451 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 452 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 453 | FRAMEWORK_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(DEVELOPER_FRAMEWORKS_DIR)", 456 | ); 457 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 458 | GCC_PREFIX_HEADER = "TestSFGaugeView/TestSFGaugeView-Prefix.pch"; 459 | INFOPLIST_FILE = "TestSFGaugeView/TestSFGaugeView-Info.plist"; 460 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 461 | PRODUCT_NAME = "$(TARGET_NAME)"; 462 | WRAPPER_EXTENSION = app; 463 | }; 464 | name = Release; 465 | }; 466 | 5FF87D7D18914D5E00A57B15 /* Debug */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 470 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestSFGaugeView.app/TestSFGaugeView"; 471 | FRAMEWORK_SEARCH_PATHS = ( 472 | "$(SDKROOT)/Developer/Library/Frameworks", 473 | "$(inherited)", 474 | "$(DEVELOPER_FRAMEWORKS_DIR)", 475 | ); 476 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 477 | GCC_PREFIX_HEADER = "TestSFGaugeView/TestSFGaugeView-Prefix.pch"; 478 | GCC_PREPROCESSOR_DEFINITIONS = ( 479 | "DEBUG=1", 480 | "$(inherited)", 481 | ); 482 | INFOPLIST_FILE = "TestSFGaugeViewTests/TestSFGaugeViewTests-Info.plist"; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | TEST_HOST = "$(BUNDLE_LOADER)"; 485 | WRAPPER_EXTENSION = xctest; 486 | }; 487 | name = Debug; 488 | }; 489 | 5FF87D7E18914D5E00A57B15 /* Release */ = { 490 | isa = XCBuildConfiguration; 491 | buildSettings = { 492 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 493 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestSFGaugeView.app/TestSFGaugeView"; 494 | FRAMEWORK_SEARCH_PATHS = ( 495 | "$(SDKROOT)/Developer/Library/Frameworks", 496 | "$(inherited)", 497 | "$(DEVELOPER_FRAMEWORKS_DIR)", 498 | ); 499 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 500 | GCC_PREFIX_HEADER = "TestSFGaugeView/TestSFGaugeView-Prefix.pch"; 501 | INFOPLIST_FILE = "TestSFGaugeViewTests/TestSFGaugeViewTests-Info.plist"; 502 | PRODUCT_NAME = "$(TARGET_NAME)"; 503 | TEST_HOST = "$(BUNDLE_LOADER)"; 504 | WRAPPER_EXTENSION = xctest; 505 | }; 506 | name = Release; 507 | }; 508 | /* End XCBuildConfiguration section */ 509 | 510 | /* Begin XCConfigurationList section */ 511 | 5FF87D4218914D5E00A57B15 /* Build configuration list for PBXProject "TestSFGaugeView" */ = { 512 | isa = XCConfigurationList; 513 | buildConfigurations = ( 514 | 5FF87D7718914D5E00A57B15 /* Debug */, 515 | 5FF87D7818914D5E00A57B15 /* Release */, 516 | ); 517 | defaultConfigurationIsVisible = 0; 518 | defaultConfigurationName = Release; 519 | }; 520 | 5FF87D7918914D5E00A57B15 /* Build configuration list for PBXNativeTarget "TestSFGaugeView" */ = { 521 | isa = XCConfigurationList; 522 | buildConfigurations = ( 523 | 5FF87D7A18914D5E00A57B15 /* Debug */, 524 | 5FF87D7B18914D5E00A57B15 /* Release */, 525 | ); 526 | defaultConfigurationIsVisible = 0; 527 | defaultConfigurationName = Release; 528 | }; 529 | 5FF87D7C18914D5E00A57B15 /* Build configuration list for PBXNativeTarget "TestSFGaugeViewTests" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 5FF87D7D18914D5E00A57B15 /* Debug */, 533 | 5FF87D7E18914D5E00A57B15 /* Release */, 534 | ); 535 | defaultConfigurationIsVisible = 0; 536 | defaultConfigurationName = Release; 537 | }; 538 | /* End XCConfigurationList section */ 539 | }; 540 | rootObject = 5FF87D3F18914D5E00A57B15 /* Project object */; 541 | } 542 | --------------------------------------------------------------------------------