├── README-IMAGES ├── result1.gif └── result2.gif ├── STLoopProgressView.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── saitjr.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── tangjr.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ ├── saitjr.xcuserdatad │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── STLoopProgressView.xcscheme │ └── tangjr.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── STLoopProgressView.xcscheme └── project.pbxproj ├── STLoopProgressView ├── ViewController.h ├── AppDelegate.h ├── main.m ├── STLoopProgressView │ ├── STLoopProgressView.h │ ├── STLoopProgressView+BaseConfiguration.h │ ├── STLoopProgressView+BaseConfiguration.m │ └── STLoopProgressView.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.m ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard └── AppDelegate.m └── README.md /README-IMAGES/result1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/STLoopProgressView/HEAD/README-IMAGES/result1.gif -------------------------------------------------------------------------------- /README-IMAGES/result2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/STLoopProgressView/HEAD/README-IMAGES/result2.gif -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/project.xcworkspace/xcuserdata/saitjr.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/STLoopProgressView/HEAD/STLoopProgressView.xcodeproj/project.xcworkspace/xcuserdata/saitjr.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/project.xcworkspace/xcuserdata/tangjr.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/STLoopProgressView/HEAD/STLoopProgressView.xcodeproj/project.xcworkspace/xcuserdata/tangjr.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /STLoopProgressView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // STLoopProgressView 4 | // 5 | // Created by tangjr on 6/12/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /STLoopProgressView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // STLoopProgressView 4 | // 5 | // Created by tangjr on 6/12/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /STLoopProgressView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // STLoopProgressView 4 | // 5 | // Created by tangjr on 6/12/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /STLoopProgressView/STLoopProgressView/STLoopProgressView.h: -------------------------------------------------------------------------------- 1 | // 2 | // STLoopProgressView.h 3 | // STLoopProgressView 4 | // 5 | // Created by TangJR on 6/29/15. 6 | // Copyright (c) 2015 tangjr. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM (NSInteger, STClockWiseType) { 12 | STClockWiseYes, 13 | STClockWiseNo 14 | }; 15 | 16 | @interface STLoopProgressView : UIView 17 | 18 | @property (assign, nonatomic) CGFloat persentage; 19 | 20 | @end -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # STLoopProgressView 2 | 3 | 环形渐变进度条 4 | 5 | ## 效果展示 6 | 7 | ![](./README-IMAGES/result1.gif) 8 | 9 | ![](./README-IMAGES/result2.gif) 10 | 11 | 12 | 13 | ## 类说明 14 | 15 | 源代码在TCircleView文件夹中,一共分为两个类:`STLoopProgressView`与`STLoopProgressView+BaseConfiguration`。 16 | 17 | ### `STLoopProgressView ` 18 | 19 | 核心功能实现 20 | 21 | ### `STLoopProgressView+BaseConfiguration` 22 | 23 | 相关配置,如 24 | 25 | - 三段颜色的配置 26 | - 起始与结束角度配置 27 | - 线宽 28 | - 起始方向配置,顺逆时针 29 | 30 | ## 技术支持 31 | 32 | 关于实现的逻辑的讲解,参照我的博客: 33 | 34 | [http://www.saitjr.com/ios/ios-implement-loop-progress.html](http://www.saitjr.com/ios/ios-implement-loop-progress.html) 35 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/xcuserdata/saitjr.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | STLoopProgressView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 96B15E9F1D0CFA2800DB319D 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/xcuserdata/tangjr.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | STLoopProgressView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 96B15E9F1D0CFA2800DB319D 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /STLoopProgressView/Assets.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" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /STLoopProgressView/STLoopProgressView/STLoopProgressView+BaseConfiguration.h: -------------------------------------------------------------------------------- 1 | // 2 | // STLoopProgressView+BaseConfiguration.h 3 | // STLoopProgressView 4 | // 5 | // Created by TangJR on 7/1/15. 6 | // Copyright (c) 2015 tangjr. All rights reserved. 7 | // 8 | 9 | #import "STLoopProgressView.h" 10 | 11 | @interface STLoopProgressView (BaseConfiguration) 12 | 13 | // 起始颜色 14 | + (UIColor *)startColor; 15 | 16 | // 中间颜色 17 | + (UIColor *)centerColor; 18 | 19 | // 结束颜色 20 | + (UIColor *)endColor; 21 | 22 | // 背景色 23 | + (UIColor *)backgroundColor; 24 | 25 | // 线宽 26 | + (CGFloat)lineWidth; 27 | 28 | // 起始角度(根据顺时针计算,逆时针则是结束角度) 29 | + (CGFloat)startAngle; 30 | 31 | // 结束角度(根据顺时针计算,逆时针则是起始角度) 32 | + (CGFloat)endAngle; 33 | 34 | // 进度条起始方向(YES为顺时针,NO为逆时针) 35 | + (STClockWiseType)clockWiseType; 36 | 37 | @end -------------------------------------------------------------------------------- /STLoopProgressView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // STLoopProgressView 4 | // 5 | // Created by tangjr on 6/12/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "STLoopProgressView.h" 11 | 12 | @interface ViewController () 13 | 14 | @property (weak, nonatomic) IBOutlet STLoopProgressView *loopProgressView; 15 | - (IBAction)sliderValueChanged:(UISlider *)sender; 16 | 17 | @end 18 | 19 | @implementation ViewController 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | // Do any additional setup after loading the view, typically from a nib. 24 | self.loopProgressView.persentage = 0.5; 25 | } 26 | 27 | - (IBAction)sliderValueChanged:(UISlider *)sender { 28 | self.loopProgressView.persentage = sender.value; 29 | } 30 | 31 | @end -------------------------------------------------------------------------------- /STLoopProgressView/STLoopProgressView/STLoopProgressView+BaseConfiguration.m: -------------------------------------------------------------------------------- 1 | // 2 | // STLoopProgressView+BaseConfiguration.m 3 | // STLoopProgressView 4 | // 5 | // Created by TangJR on 7/1/15. 6 | // Copyright (c) 2015 tangjr. All rights reserved. 7 | // 8 | 9 | #import "STLoopProgressView+BaseConfiguration.h" 10 | 11 | #define DEGREES_TO_RADOANS(x) (M_PI * (x) / 180.0) // 将角度转为弧度 12 | 13 | @implementation STLoopProgressView (BaseConfiguration) 14 | 15 | + (UIColor *)startColor { 16 | 17 | return [UIColor greenColor]; 18 | } 19 | 20 | + (UIColor *)centerColor { 21 | 22 | return [UIColor yellowColor]; 23 | } 24 | 25 | + (UIColor *)endColor { 26 | 27 | return [UIColor redColor]; 28 | } 29 | 30 | + (UIColor *)backgroundColor { 31 | 32 | return [UIColor colorWithRed:38.0 / 255.0 green:130.0 / 255.0 blue:213.0 / 255.0 alpha:0.5]; 33 | } 34 | 35 | + (CGFloat)lineWidth { 36 | 37 | return 20; 38 | } 39 | 40 | + (CGFloat)startAngle { 41 | 42 | return DEGREES_TO_RADOANS(-240); 43 | } 44 | 45 | + (CGFloat)endAngle { 46 | 47 | return DEGREES_TO_RADOANS(60); 48 | } 49 | 50 | + (STClockWiseType)clockWiseType { 51 | return STClockWiseNo; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /STLoopProgressView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /STLoopProgressView/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /STLoopProgressView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // STLoopProgressView 4 | // 5 | // Created by tangjr on 6/12/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 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 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/xcuserdata/saitjr.xcuserdatad/xcschemes/STLoopProgressView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/xcuserdata/tangjr.xcuserdatad/xcschemes/STLoopProgressView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /STLoopProgressView/STLoopProgressView/STLoopProgressView.m: -------------------------------------------------------------------------------- 1 | // 2 | // STLoopProgressView.m 3 | // STLoopProgressView 4 | // 5 | // Created by TangJR on 6/29/15. 6 | // Copyright (c) 2015 tangjr. All rights reserved. 7 | // 8 | 9 | #import "STLoopProgressView.h" 10 | #import "STLoopProgressView+BaseConfiguration.h" 11 | 12 | #define SELF_WIDTH CGRectGetWidth(self.bounds) 13 | #define SELF_HEIGHT CGRectGetHeight(self.bounds) 14 | 15 | @interface STLoopProgressView () 16 | 17 | @property (strong, nonatomic) CAShapeLayer *colorMaskLayer; // 渐变色遮罩 18 | @property (strong, nonatomic) CAShapeLayer *colorLayer; // 渐变色 19 | @property (strong, nonatomic) CAShapeLayer *blueMaskLayer; // 蓝色背景遮罩 20 | 21 | @end 22 | 23 | @implementation STLoopProgressView 24 | 25 | - (void)awakeFromNib { 26 | 27 | [super awakeFromNib]; 28 | 29 | self.backgroundColor = [STLoopProgressView backgroundColor]; 30 | 31 | [self setupColorLayer]; 32 | [self setupColorMaskLayer]; 33 | [self setupBlueMaskLayer]; 34 | } 35 | 36 | /** 37 | * 设置整个蓝色view的遮罩 38 | */ 39 | - (void)setupBlueMaskLayer { 40 | 41 | CAShapeLayer *layer = [self generateMaskLayer]; 42 | self.layer.mask = layer; 43 | self.blueMaskLayer = layer; 44 | } 45 | 46 | /** 47 | * 设置渐变色,渐变色由左右两个部分组成,左边部分由黄到绿,右边部分由黄到红 48 | */ 49 | - (void)setupColorLayer { 50 | 51 | self.colorLayer = [CAShapeLayer layer]; 52 | self.colorLayer.frame = self.bounds; 53 | [self.layer addSublayer:self.colorLayer]; 54 | 55 | CAGradientLayer *leftLayer = [CAGradientLayer layer]; 56 | leftLayer.frame = CGRectMake(0, 0, SELF_WIDTH / 2, SELF_HEIGHT); 57 | // 分段设置渐变色 58 | leftLayer.locations = @[@0.3, @0.9, @1]; 59 | leftLayer.colors = @[(id)[STLoopProgressView centerColor].CGColor, (id)[STLoopProgressView startColor].CGColor]; 60 | [self.colorLayer addSublayer:leftLayer]; 61 | 62 | CAGradientLayer *rightLayer = [CAGradientLayer layer]; 63 | rightLayer.frame = CGRectMake(SELF_WIDTH / 2, 0, SELF_WIDTH / 2, SELF_HEIGHT); 64 | rightLayer.locations = @[@0.3, @0.9, @1]; 65 | rightLayer.colors = @[(id)[STLoopProgressView centerColor].CGColor, (id)[STLoopProgressView endColor].CGColor]; 66 | [self.colorLayer addSublayer:rightLayer]; 67 | } 68 | 69 | /** 70 | * 设置渐变色的遮罩 71 | */ 72 | - (void)setupColorMaskLayer { 73 | 74 | CAShapeLayer *layer = [self generateMaskLayer]; 75 | layer.lineWidth = [STLoopProgressView lineWidth] + 0.5; // 渐变遮罩线宽较大,防止蓝色遮罩有边露出来 76 | self.colorLayer.mask = layer; 77 | self.colorMaskLayer = layer; 78 | } 79 | 80 | /** 81 | * 生成一个圆环形的遮罩层 82 | * 因为蓝色遮罩与渐变遮罩的配置都相同,所以封装出来 83 | * 84 | * @return 环形遮罩 85 | */ 86 | - (CAShapeLayer *)generateMaskLayer { 87 | 88 | CAShapeLayer *layer = [CAShapeLayer layer]; 89 | layer.frame = self.bounds; 90 | 91 | // 创建一个圆心为父视图中点的圆,半径为父视图宽的2/5,起始角度是从-240°到60° 92 | 93 | UIBezierPath *path = nil; 94 | if ([STLoopProgressView clockWiseType]) { 95 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(SELF_WIDTH / 2, SELF_HEIGHT / 2) radius:SELF_WIDTH / 2.5 startAngle:[STLoopProgressView startAngle] endAngle:[STLoopProgressView endAngle] clockwise:YES]; 96 | } else { 97 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(SELF_WIDTH / 2, SELF_HEIGHT / 2) radius:SELF_WIDTH / 2.5 startAngle:[STLoopProgressView endAngle] endAngle:[STLoopProgressView startAngle] clockwise:NO]; 98 | } 99 | 100 | layer.lineWidth = [STLoopProgressView lineWidth]; 101 | layer.path = path.CGPath; 102 | layer.fillColor = [UIColor clearColor].CGColor; // 填充色为透明(不设置为黑色) 103 | layer.strokeColor = [UIColor blackColor].CGColor; // 随便设置一个边框颜色 104 | layer.lineCap = kCALineCapRound; // 设置线为圆角 105 | return layer; 106 | } 107 | 108 | /** 109 | * 在修改百分比的时候,修改彩色遮罩的大小 110 | * 111 | * @param persentage 百分比 112 | */ 113 | - (void)setPersentage:(CGFloat)persentage { 114 | 115 | _persentage = persentage; 116 | self.colorMaskLayer.strokeEnd = persentage; 117 | } 118 | 119 | @end -------------------------------------------------------------------------------- /STLoopProgressView/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 | -------------------------------------------------------------------------------- /STLoopProgressView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 96B15EA51D0CFA2800DB319D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B15EA41D0CFA2800DB319D /* main.m */; }; 11 | 96B15EA81D0CFA2800DB319D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B15EA71D0CFA2800DB319D /* AppDelegate.m */; }; 12 | 96B15EAB1D0CFA2800DB319D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B15EAA1D0CFA2800DB319D /* ViewController.m */; }; 13 | 96B15EAE1D0CFA2800DB319D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 96B15EAC1D0CFA2800DB319D /* Main.storyboard */; }; 14 | 96B15EB01D0CFA2800DB319D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 96B15EAF1D0CFA2800DB319D /* Assets.xcassets */; }; 15 | 96B15EB31D0CFA2800DB319D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 96B15EB11D0CFA2800DB319D /* LaunchScreen.storyboard */; }; 16 | 96B15EBF1D0CFA5200DB319D /* STLoopProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B15EBC1D0CFA5200DB319D /* STLoopProgressView.m */; }; 17 | 96B15EC01D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B15EBE1D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 96B15EA01D0CFA2800DB319D /* STLoopProgressView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = STLoopProgressView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 96B15EA41D0CFA2800DB319D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 23 | 96B15EA61D0CFA2800DB319D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | 96B15EA71D0CFA2800DB319D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | 96B15EA91D0CFA2800DB319D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 26 | 96B15EAA1D0CFA2800DB319D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 27 | 96B15EAD1D0CFA2800DB319D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | 96B15EAF1D0CFA2800DB319D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | 96B15EB21D0CFA2800DB319D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | 96B15EB41D0CFA2800DB319D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | 96B15EBB1D0CFA5200DB319D /* STLoopProgressView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = STLoopProgressView.h; sourceTree = ""; }; 32 | 96B15EBC1D0CFA5200DB319D /* STLoopProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STLoopProgressView.m; sourceTree = ""; }; 33 | 96B15EBD1D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "STLoopProgressView+BaseConfiguration.h"; sourceTree = ""; }; 34 | 96B15EBE1D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "STLoopProgressView+BaseConfiguration.m"; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 96B15E9D1D0CFA2800DB319D /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 96B15E971D0CFA2800DB319D = { 49 | isa = PBXGroup; 50 | children = ( 51 | 96B15EA21D0CFA2800DB319D /* STLoopProgressView */, 52 | 96B15EA11D0CFA2800DB319D /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | 96B15EA11D0CFA2800DB319D /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 96B15EA01D0CFA2800DB319D /* STLoopProgressView.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | 96B15EA21D0CFA2800DB319D /* STLoopProgressView */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 96B15EBA1D0CFA3C00DB319D /* STLoopProgressView */, 68 | 96B15EA61D0CFA2800DB319D /* AppDelegate.h */, 69 | 96B15EA71D0CFA2800DB319D /* AppDelegate.m */, 70 | 96B15EA91D0CFA2800DB319D /* ViewController.h */, 71 | 96B15EAA1D0CFA2800DB319D /* ViewController.m */, 72 | 96B15EAC1D0CFA2800DB319D /* Main.storyboard */, 73 | 96B15EAF1D0CFA2800DB319D /* Assets.xcassets */, 74 | 96B15EB11D0CFA2800DB319D /* LaunchScreen.storyboard */, 75 | 96B15EB41D0CFA2800DB319D /* Info.plist */, 76 | 96B15EA31D0CFA2800DB319D /* Supporting Files */, 77 | ); 78 | path = STLoopProgressView; 79 | sourceTree = ""; 80 | }; 81 | 96B15EA31D0CFA2800DB319D /* Supporting Files */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 96B15EA41D0CFA2800DB319D /* main.m */, 85 | ); 86 | name = "Supporting Files"; 87 | sourceTree = ""; 88 | }; 89 | 96B15EBA1D0CFA3C00DB319D /* STLoopProgressView */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 96B15EBB1D0CFA5200DB319D /* STLoopProgressView.h */, 93 | 96B15EBC1D0CFA5200DB319D /* STLoopProgressView.m */, 94 | 96B15EBD1D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.h */, 95 | 96B15EBE1D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.m */, 96 | ); 97 | path = STLoopProgressView; 98 | sourceTree = ""; 99 | }; 100 | /* End PBXGroup section */ 101 | 102 | /* Begin PBXNativeTarget section */ 103 | 96B15E9F1D0CFA2800DB319D /* STLoopProgressView */ = { 104 | isa = PBXNativeTarget; 105 | buildConfigurationList = 96B15EB71D0CFA2800DB319D /* Build configuration list for PBXNativeTarget "STLoopProgressView" */; 106 | buildPhases = ( 107 | 96B15E9C1D0CFA2800DB319D /* Sources */, 108 | 96B15E9D1D0CFA2800DB319D /* Frameworks */, 109 | 96B15E9E1D0CFA2800DB319D /* Resources */, 110 | ); 111 | buildRules = ( 112 | ); 113 | dependencies = ( 114 | ); 115 | name = STLoopProgressView; 116 | productName = STLoopProgressView; 117 | productReference = 96B15EA01D0CFA2800DB319D /* STLoopProgressView.app */; 118 | productType = "com.apple.product-type.application"; 119 | }; 120 | /* End PBXNativeTarget section */ 121 | 122 | /* Begin PBXProject section */ 123 | 96B15E981D0CFA2800DB319D /* Project object */ = { 124 | isa = PBXProject; 125 | attributes = { 126 | LastUpgradeCheck = 0730; 127 | ORGANIZATIONNAME = saitjr; 128 | TargetAttributes = { 129 | 96B15E9F1D0CFA2800DB319D = { 130 | CreatedOnToolsVersion = 7.3.1; 131 | }; 132 | }; 133 | }; 134 | buildConfigurationList = 96B15E9B1D0CFA2800DB319D /* Build configuration list for PBXProject "STLoopProgressView" */; 135 | compatibilityVersion = "Xcode 3.2"; 136 | developmentRegion = English; 137 | hasScannedForEncodings = 0; 138 | knownRegions = ( 139 | en, 140 | Base, 141 | ); 142 | mainGroup = 96B15E971D0CFA2800DB319D; 143 | productRefGroup = 96B15EA11D0CFA2800DB319D /* Products */; 144 | projectDirPath = ""; 145 | projectRoot = ""; 146 | targets = ( 147 | 96B15E9F1D0CFA2800DB319D /* STLoopProgressView */, 148 | ); 149 | }; 150 | /* End PBXProject section */ 151 | 152 | /* Begin PBXResourcesBuildPhase section */ 153 | 96B15E9E1D0CFA2800DB319D /* Resources */ = { 154 | isa = PBXResourcesBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | 96B15EB31D0CFA2800DB319D /* LaunchScreen.storyboard in Resources */, 158 | 96B15EB01D0CFA2800DB319D /* Assets.xcassets in Resources */, 159 | 96B15EAE1D0CFA2800DB319D /* Main.storyboard in Resources */, 160 | ); 161 | runOnlyForDeploymentPostprocessing = 0; 162 | }; 163 | /* End PBXResourcesBuildPhase section */ 164 | 165 | /* Begin PBXSourcesBuildPhase section */ 166 | 96B15E9C1D0CFA2800DB319D /* Sources */ = { 167 | isa = PBXSourcesBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 96B15EAB1D0CFA2800DB319D /* ViewController.m in Sources */, 171 | 96B15EBF1D0CFA5200DB319D /* STLoopProgressView.m in Sources */, 172 | 96B15EC01D0CFA5200DB319D /* STLoopProgressView+BaseConfiguration.m in Sources */, 173 | 96B15EA81D0CFA2800DB319D /* AppDelegate.m in Sources */, 174 | 96B15EA51D0CFA2800DB319D /* main.m in Sources */, 175 | ); 176 | runOnlyForDeploymentPostprocessing = 0; 177 | }; 178 | /* End PBXSourcesBuildPhase section */ 179 | 180 | /* Begin PBXVariantGroup section */ 181 | 96B15EAC1D0CFA2800DB319D /* Main.storyboard */ = { 182 | isa = PBXVariantGroup; 183 | children = ( 184 | 96B15EAD1D0CFA2800DB319D /* Base */, 185 | ); 186 | name = Main.storyboard; 187 | sourceTree = ""; 188 | }; 189 | 96B15EB11D0CFA2800DB319D /* LaunchScreen.storyboard */ = { 190 | isa = PBXVariantGroup; 191 | children = ( 192 | 96B15EB21D0CFA2800DB319D /* Base */, 193 | ); 194 | name = LaunchScreen.storyboard; 195 | sourceTree = ""; 196 | }; 197 | /* End PBXVariantGroup section */ 198 | 199 | /* Begin XCBuildConfiguration section */ 200 | 96B15EB51D0CFA2800DB319D /* Debug */ = { 201 | isa = XCBuildConfiguration; 202 | buildSettings = { 203 | ALWAYS_SEARCH_USER_PATHS = NO; 204 | CLANG_ANALYZER_NONNULL = YES; 205 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 206 | CLANG_CXX_LIBRARY = "libc++"; 207 | CLANG_ENABLE_MODULES = YES; 208 | CLANG_ENABLE_OBJC_ARC = YES; 209 | CLANG_WARN_BOOL_CONVERSION = YES; 210 | CLANG_WARN_CONSTANT_CONVERSION = YES; 211 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 212 | CLANG_WARN_EMPTY_BODY = YES; 213 | CLANG_WARN_ENUM_CONVERSION = YES; 214 | CLANG_WARN_INT_CONVERSION = YES; 215 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 216 | CLANG_WARN_UNREACHABLE_CODE = YES; 217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 218 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 219 | COPY_PHASE_STRIP = NO; 220 | DEBUG_INFORMATION_FORMAT = dwarf; 221 | ENABLE_STRICT_OBJC_MSGSEND = YES; 222 | ENABLE_TESTABILITY = YES; 223 | GCC_C_LANGUAGE_STANDARD = gnu99; 224 | GCC_DYNAMIC_NO_PIC = NO; 225 | GCC_NO_COMMON_BLOCKS = YES; 226 | GCC_OPTIMIZATION_LEVEL = 0; 227 | GCC_PREPROCESSOR_DEFINITIONS = ( 228 | "DEBUG=1", 229 | "$(inherited)", 230 | ); 231 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 232 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 233 | GCC_WARN_UNDECLARED_SELECTOR = YES; 234 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 235 | GCC_WARN_UNUSED_FUNCTION = YES; 236 | GCC_WARN_UNUSED_VARIABLE = YES; 237 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 238 | MTL_ENABLE_DEBUG_INFO = YES; 239 | ONLY_ACTIVE_ARCH = YES; 240 | SDKROOT = iphoneos; 241 | }; 242 | name = Debug; 243 | }; 244 | 96B15EB61D0CFA2800DB319D /* Release */ = { 245 | isa = XCBuildConfiguration; 246 | buildSettings = { 247 | ALWAYS_SEARCH_USER_PATHS = NO; 248 | CLANG_ANALYZER_NONNULL = YES; 249 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 250 | CLANG_CXX_LIBRARY = "libc++"; 251 | CLANG_ENABLE_MODULES = YES; 252 | CLANG_ENABLE_OBJC_ARC = YES; 253 | CLANG_WARN_BOOL_CONVERSION = YES; 254 | CLANG_WARN_CONSTANT_CONVERSION = YES; 255 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 256 | CLANG_WARN_EMPTY_BODY = YES; 257 | CLANG_WARN_ENUM_CONVERSION = YES; 258 | CLANG_WARN_INT_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | VALIDATE_PRODUCT = YES; 279 | }; 280 | name = Release; 281 | }; 282 | 96B15EB81D0CFA2800DB319D /* Debug */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 286 | INFOPLIST_FILE = STLoopProgressView/Info.plist; 287 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 288 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.STLoopProgressView; 289 | PRODUCT_NAME = "$(TARGET_NAME)"; 290 | }; 291 | name = Debug; 292 | }; 293 | 96B15EB91D0CFA2800DB319D /* Release */ = { 294 | isa = XCBuildConfiguration; 295 | buildSettings = { 296 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 297 | INFOPLIST_FILE = STLoopProgressView/Info.plist; 298 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 299 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.STLoopProgressView; 300 | PRODUCT_NAME = "$(TARGET_NAME)"; 301 | }; 302 | name = Release; 303 | }; 304 | /* End XCBuildConfiguration section */ 305 | 306 | /* Begin XCConfigurationList section */ 307 | 96B15E9B1D0CFA2800DB319D /* Build configuration list for PBXProject "STLoopProgressView" */ = { 308 | isa = XCConfigurationList; 309 | buildConfigurations = ( 310 | 96B15EB51D0CFA2800DB319D /* Debug */, 311 | 96B15EB61D0CFA2800DB319D /* Release */, 312 | ); 313 | defaultConfigurationIsVisible = 0; 314 | defaultConfigurationName = Release; 315 | }; 316 | 96B15EB71D0CFA2800DB319D /* Build configuration list for PBXNativeTarget "STLoopProgressView" */ = { 317 | isa = XCConfigurationList; 318 | buildConfigurations = ( 319 | 96B15EB81D0CFA2800DB319D /* Debug */, 320 | 96B15EB91D0CFA2800DB319D /* Release */, 321 | ); 322 | defaultConfigurationIsVisible = 0; 323 | }; 324 | /* End XCConfigurationList section */ 325 | }; 326 | rootObject = 96B15E981D0CFA2800DB319D /* Project object */; 327 | } 328 | --------------------------------------------------------------------------------