├── ZFProgressViewExampleTests
├── ZFProgressView.gif
├── Info.plist
└── ZFProgressViewExampleTests.m
├── ZFProgressViewExample.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── macOne.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── macOne.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── ZFProgressViewExample.xcscheme
└── project.pbxproj
├── ZFProgressViewExample
├── ViewController.h
├── AppDelegate.h
├── main.m
├── ZFProgressView.h
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── Info.plist
├── ViewController.m
├── AppDelegate.m
└── ZFProgressView.m
├── ZFProgressViewExampleUITests
├── Info.plist
└── ZFProgressViewExampleUITests.m
├── ZFProgressView.h
├── README.md
└── ZFProgressView.m
/ZFProgressViewExampleTests/ZFProgressView.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/animations/ZFProgressView/master/ZFProgressViewExampleTests/ZFProgressView.gif
--------------------------------------------------------------------------------
/ZFProgressViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZFProgressViewExample.xcodeproj/project.xcworkspace/xcuserdata/macOne.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/animations/ZFProgressView/master/ZFProgressViewExample.xcodeproj/project.xcworkspace/xcuserdata/macOne.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ZFProgressViewExample/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // ZFProgressViewExample
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // ZFProgressViewExample
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. 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 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // ZFProgressViewExample
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. 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 |
--------------------------------------------------------------------------------
/ZFProgressViewExampleTests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZFProgressViewExampleUITests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZFProgressViewExample.xcodeproj/xcuserdata/macOne.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ZFProgressViewExample.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | DB0379E51BD8C57C007B89C7
16 |
17 | primary
18 |
19 |
20 | DB0379FE1BD8C57C007B89C7
21 |
22 | primary
23 |
24 |
25 | DB037A091BD8C57C007B89C7
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ZFProgressViewExampleTests/ZFProgressViewExampleTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressViewExampleTests.m
3 | // ZFProgressViewExampleTests
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZFProgressViewExampleTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ZFProgressViewExampleTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/ZFProgressView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressView.h
3 | // ZFProgressView
4 | //
5 | // Created by macOne on 15/9/23.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | typedef NS_ENUM(NSInteger, ZFProgressViewStyle) {
12 | ZFProgressViewStyleNone = 0,
13 | ZFProgressViewStyleSquareSegment,
14 | ZFProgressViewStyleRoundSegment,
15 |
16 | };
17 |
18 | @interface ZFProgressView : UIView
19 |
20 | //进度线条宽度
21 | @property (nonatomic,assign) CGFloat progressLineWidth;
22 | //背景线条宽度
23 | @property (nonatomic,assign) CGFloat backgourndLineWidth;
24 | //进度百分比
25 | @property (nonatomic,assign) CGFloat Percentage;
26 | //背景填充颜色
27 | @property (nonatomic,strong) UIColor *backgroundStrokeColor;
28 | //进度条填充颜色
29 | @property (nonatomic,strong) UIColor *progressStrokeColor;
30 | //距离边框边距偏移量
31 | @property (nonatomic,assign) CGFloat offset;
32 | //步长
33 | @property (nonatomic,assign) CGFloat step;
34 |
35 | //数字字体颜色
36 | @property (nonatomic,strong) UIColor *digitTintColor;
37 |
38 | //style
39 | - (instancetype) initWithFrame:(CGRect)frame style:(ZFProgressViewStyle)style;
40 |
41 | -(void)setProgress:(CGFloat)Percentage Animated:(BOOL)animated;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/ZFProgressView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressView.h
3 | // ZFProgressView
4 | //
5 | // Created by macOne on 15/9/23.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | typedef NS_ENUM(NSInteger, ZFProgressViewStyle) {
12 | ZFProgressViewStyleNone = 0,
13 | ZFProgressViewStyleSquareSegment,
14 | ZFProgressViewStyleRoundSegment,
15 |
16 | };
17 |
18 | @interface ZFProgressView : UIView
19 |
20 | //进度线条宽度
21 | @property (nonatomic,assign) CGFloat progressLineWidth;
22 | //背景线条宽度
23 | @property (nonatomic,assign) CGFloat backgourndLineWidth;
24 | //进度百分比
25 | @property (nonatomic,assign) CGFloat Percentage;
26 | //背景填充颜色
27 | @property (nonatomic,strong) UIColor *backgroundStrokeColor;
28 | //进度条填充颜色
29 | @property (nonatomic,strong) UIColor *progressStrokeColor;
30 | //距离边框边距偏移量
31 | @property (nonatomic,assign) CGFloat offset;
32 | //步长
33 | @property (nonatomic,assign) CGFloat step;
34 |
35 | //数字字体颜色
36 | @property (nonatomic,strong) UIColor *digitTintColor;
37 |
38 | //style
39 | - (instancetype) initWithFrame:(CGRect)frame style:(ZFProgressViewStyle)style;
40 |
41 | -(void)setProgress:(CGFloat)Percentage Animated:(BOOL)animated;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/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 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/ZFProgressViewExampleUITests/ZFProgressViewExampleUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressViewExampleUITests.m
3 | // ZFProgressViewExampleUITests
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZFProgressViewExampleUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ZFProgressViewExampleUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ZFProgressView
2 | A simple digit progress view.
3 |
4 | ## Version 1.1 加入不同进度样式
5 |
6 | ZFProgressViewStyleNone, //默认样式
7 | ZFProgressViewStyleSquareSegment, //方形格子进度条
8 | ZFProgressViewStyleRoundSegment, //圆形格子进度条
9 |
10 | ## Example:
11 |
12 |
13 |
14 |
15 |
16 | Version 1.1
17 |
18 | Add "ZFProgressViewStyle"
19 |
20 | ##How to use ZFProgressView?
21 |
22 | Add "ZFProgressView.h" and "ZFProgressView.m" in your project.
23 | Then
24 |
25 |
26 |
27 | ```obj-c
28 | ZFProgressView *progress = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 150, 100, 100)];
29 | ```
30 | With Style
31 |
32 | ```obj-c
33 | ZFProgressView *progress = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 150, 100, 100)
34 | style:ZFProgressViewStyleRoundSegment];
35 | ```
36 |
37 | ###1. setProgressStrokeColor
38 | ```obj-c
39 | [progress setProgressStrokeColor:[UIColor orangeColor]];
40 | ```
41 |
42 | ###2. setBackgroundStrokeColor
43 | ```obj-c
44 | [progress setBackgroundStrokeColor:[UIColor yellowColor]];
45 | ```
46 |
47 | ###3. setDigitTintColor
48 | ```obj-c
49 | [progress setDigitTintColor:[UIColor greenColor]];
50 | ```
51 |
52 | ###4. use an animation to show digit progress
53 | ```obj-c
54 | [progress setProgress:0.8 Animated:YES];
55 | or
56 | [progress setProgress:0.8 Animated:NO];
57 | ```
58 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/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 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/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.1
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 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/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 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // ZFProgressViewExample
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "ZFProgressView.h"
11 |
12 | @interface ViewController ()
13 |
14 |
15 | @end
16 |
17 | @implementation ViewController
18 |
19 | - (void)viewDidLoad {
20 | [super viewDidLoad];
21 | // Do any additional setup after loading the view, typically from a nib.
22 | [self.view setBackgroundColor:[UIColor purpleColor]];
23 |
24 | ZFProgressView *progress1 = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 150, 100, 100)];
25 | [self.view addSubview:progress1];
26 | [progress1 setProgress:0.8 Animated:YES];
27 | //
28 | //
29 | ZFProgressView *progress2 = [[ZFProgressView alloc] initWithFrame:CGRectMake(200, 150, 100, 100) style:ZFProgressViewStyleRoundSegment];
30 | [self.view addSubview:progress2];
31 | [progress2 setProgressStrokeColor:[UIColor orangeColor]];
32 | [progress2 setProgress:0.8 Animated:YES];
33 |
34 | ZFProgressView *progress3 = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 300, 100, 100) style:ZFProgressViewStyleSquareSegment];
35 | [self.view addSubview:progress3];
36 | [progress3 setProgressStrokeColor:[UIColor orangeColor]];
37 | [progress3 setProgress:0.8 Animated:YES];
38 |
39 | ZFProgressView *progress4 = [[ZFProgressView alloc] initWithFrame:CGRectMake(200, 300, 100, 100) style:ZFProgressViewStyleRoundSegment];
40 | [self.view addSubview:progress4];
41 | [progress4 setProgressStrokeColor:[UIColor redColor]];
42 | [progress4 setBackgroundStrokeColor:[UIColor yellowColor]];
43 | [progress4 setDigitTintColor:[UIColor greenColor]];
44 | [progress4 setProgress:0.8 Animated:YES];
45 | }
46 |
47 | - (void)didReceiveMemoryWarning {
48 | [super didReceiveMemoryWarning];
49 | // Dispose of any resources that can be recreated.
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // ZFProgressViewExample
4 | //
5 | // Created by macOne on 15/10/22.
6 | // Copyright © 2015年 WZF. 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 |
--------------------------------------------------------------------------------
/ZFProgressViewExample.xcodeproj/xcuserdata/macOne.xcuserdatad/xcschemes/ZFProgressViewExample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/ZFProgressView.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressView.m
3 | // ZFProgressView
4 | //
5 | // Created by macOne on 15/9/23.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import "ZFProgressView.h"
10 |
11 | #define Duration 5.0
12 | #define DefaultLineWidth 5
13 | #define GAP 10
14 |
15 | @interface ZFProgressView ()
16 |
17 | @property (nonatomic,strong) CAShapeLayer *backgroundLayer;
18 | @property (nonatomic,strong) CAShapeLayer *progressLayer;
19 | @property (nonatomic,strong) UILabel *progressLabel;
20 | @property (nonatomic,assign) CGFloat sumSteps;
21 | @property (nonatomic,strong) NSTimer *timer;
22 | @property (nonatomic,assign) ZFProgressViewStyle style;
23 |
24 |
25 | @end
26 |
27 | @implementation ZFProgressView
28 | //默认样式 none
29 | -(instancetype) initWithFrame:(CGRect)frame
30 | {
31 | return [self initWithFrame:frame style:ZFProgressViewStyleNone];
32 |
33 | }
34 | - (instancetype) initWithFrame:(CGRect)frame style:(ZFProgressViewStyle)style
35 | {
36 | self = [super initWithFrame:frame];
37 | if (self) {
38 |
39 | [self setBackgroundColor:[UIColor clearColor]];
40 |
41 | self.style = style;
42 | [self layoutViews:style];
43 |
44 | //init default variable
45 | self.backgourndLineWidth = DefaultLineWidth;
46 | self.progressLineWidth = DefaultLineWidth;
47 | self.Percentage = 0;
48 | self.offset = 0;
49 | self.sumSteps = 0;
50 | self.step = 0.1;
51 |
52 |
53 | }
54 | return self;
55 | }
56 |
57 |
58 | -(void) layoutViews:(ZFProgressViewStyle)style
59 | {
60 | [self.progressLabel setTextColor:[UIColor whiteColor]];
61 | self.progressLabel.text = @"0%";
62 | self.progressLabel.textAlignment = NSTextAlignmentCenter;
63 | self.progressLabel.font = [UIFont systemFontOfSize:25 weight:0.4];
64 | [self addSubview:self.progressLabel];
65 |
66 | _backgroundLayer = [CAShapeLayer layer];
67 | _backgroundLayer.frame = self.bounds;
68 | _backgroundLayer.fillColor = nil;
69 | _backgroundLayer.strokeColor = [UIColor brownColor].CGColor;
70 |
71 | _progressLayer = [CAShapeLayer layer];
72 | _progressLayer.frame = self.bounds;
73 | _progressLayer.fillColor = nil;
74 | _progressLayer.strokeColor = [UIColor whiteColor].CGColor;
75 |
76 | switch (style) {
77 | case ZFProgressViewStyleNone:
78 | case ZFProgressViewStyleSquareSegment:
79 | _backgroundLayer.lineCap = kCALineCapSquare;
80 | _backgroundLayer.lineJoin = kCALineCapSquare;
81 |
82 | _progressLayer.lineCap = kCALineCapSquare;
83 | _progressLayer.lineJoin = kCALineCapSquare;
84 | break;
85 |
86 | case ZFProgressViewStyleRoundSegment:
87 | _backgroundLayer.lineCap = kCALineCapRound;
88 | _backgroundLayer.lineJoin = kCALineCapRound;
89 |
90 | _progressLayer.lineCap = kCALineCapRound;
91 | _progressLayer.lineJoin = kCALineCapRound;
92 | break;
93 |
94 | default:
95 | break;
96 | }
97 |
98 | [self.layer addSublayer:_backgroundLayer];
99 | [self.layer addSublayer:_progressLayer];
100 |
101 |
102 | }
103 | #pragma mark - draw circleLine
104 | -(void) setBackgroundCircleLine:(ZFProgressViewStyle)style
105 | {
106 | UIBezierPath *path = [UIBezierPath bezierPath];
107 | if (style == ZFProgressViewStyleNone) {
108 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
109 | self.center.y - self.frame.origin.y)
110 | radius:(self.bounds.size.width - _backgourndLineWidth)/ 2 - _offset
111 | startAngle:0
112 | endAngle:M_PI*2
113 | clockwise:YES];
114 | }
115 | else
116 | {
117 | static float minAngle = 0.0081;
118 |
119 | for (int i = 0; i < ceil(360 / GAP)+1; i++) {
120 | CGFloat angle = (i * (GAP + minAngle) * M_PI / 180.0);
121 |
122 | if (i == 0) {
123 | angle = minAngle * M_PI/180.0;
124 | }
125 |
126 | if (angle >= M_PI *2) {
127 | angle = M_PI *2;
128 | }
129 | UIBezierPath *path1 = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
130 | self.center.y - self.frame.origin.y)
131 | radius:(self.bounds.size.width - _backgourndLineWidth)/ 2 - _offset
132 | startAngle:-M_PI_2 +(i *GAP * M_PI / 180.0)
133 | endAngle:-M_PI_2 + angle
134 | clockwise:YES];
135 |
136 | [path appendPath:path1];
137 |
138 | }
139 |
140 | }
141 |
142 |
143 |
144 |
145 | _backgroundLayer.path = path.CGPath;
146 |
147 | }
148 |
149 | -(void)setProgressCircleLine:(ZFProgressViewStyle)style
150 | {
151 | UIBezierPath *path = [UIBezierPath bezierPath];
152 | if (style == ZFProgressViewStyleNone) {
153 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
154 | self.center.y - self.frame.origin.y)
155 | radius:(self.bounds.size.width - _progressLineWidth)/ 2 - _offset
156 | startAngle:-M_PI_2
157 | endAngle:-M_PI_2 + M_PI *2
158 | clockwise:YES];
159 | }
160 | else
161 | {
162 | static float minAngle = 0.0081;
163 | for (int i = 0; i < ceil(360 / GAP *_Percentage)+1; i++) {
164 | CGFloat angle = (i * (GAP + minAngle) * M_PI / 180.0);
165 |
166 | if (i == 0) {
167 | angle = minAngle * M_PI/180.0;
168 | }
169 |
170 | if (angle >= M_PI *2) {
171 | angle = M_PI *2;
172 | }
173 | UIBezierPath *path1 = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
174 | self.center.y - self.frame.origin.y)
175 | radius:(self.bounds.size.width - _progressLineWidth)/ 2 - _offset
176 | startAngle:-M_PI_2 +(i *GAP * M_PI / 180.0)
177 | endAngle:-M_PI_2 + angle
178 | clockwise:YES];
179 |
180 | [path appendPath:path1];
181 |
182 | }
183 |
184 | }
185 |
186 | _progressLayer.path = path.CGPath;
187 | }
188 |
189 |
190 | #pragma mark - setter and getter methond
191 |
192 | -(UILabel *)progressLabel
193 | {
194 | if(!_progressLabel)
195 | {
196 | _progressLabel = [[UILabel alloc] initWithFrame:CGRectMake((self.bounds.size.width - 100)/2, (self.bounds.size.height - 100)/2, 100, 100)];
197 | }
198 | return _progressLabel;
199 | }
200 | -(void)setBackgourndLineWidth:(CGFloat)backgourndLineWidth
201 | {
202 | _backgourndLineWidth = backgourndLineWidth;
203 | _backgroundLayer.lineWidth = backgourndLineWidth;
204 | }
205 |
206 | -(void)setProgressLineWidth:(CGFloat)progressLineWidth
207 | {
208 | _progressLineWidth = progressLineWidth;
209 | _progressLayer.lineWidth = progressLineWidth;
210 | [self setBackgroundCircleLine:self.style];
211 | [self setProgressCircleLine:self.style];
212 | }
213 |
214 | -(void)setPercentage:(CGFloat)Percentage
215 | {
216 | _Percentage = Percentage;
217 | [self setProgressCircleLine:self.style];
218 | ;
219 | }
220 |
221 | -(void)setBackgroundStrokeColor:(UIColor *)backgroundStrokeColor
222 | {
223 | _backgroundStrokeColor = backgroundStrokeColor;
224 | _backgroundLayer.strokeColor = backgroundStrokeColor.CGColor;
225 | }
226 |
227 | -(void)setProgressStrokeColor:(UIColor *)progressStrokeColor
228 | {
229 | _progressStrokeColor = progressStrokeColor;
230 | _progressLayer.strokeColor = progressStrokeColor.CGColor;
231 |
232 | }
233 |
234 | -(void)setDigitTintColor:(UIColor *)digitTintColor
235 | {
236 | _digitTintColor = digitTintColor;
237 | _progressLabel.textColor = digitTintColor;
238 | }
239 |
240 | #pragma mark - progress animated YES or NO
241 | -(void)setProgress:(CGFloat)Percentage Animated:(BOOL)animated
242 | {
243 | self.Percentage = Percentage;
244 | if (animated) {
245 |
246 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
247 | animation.fromValue = [NSNumber numberWithFloat:0.0];
248 | if (self.style == ZFProgressViewStyleNone) {
249 | animation.toValue = [NSNumber numberWithFloat:_Percentage];
250 | _progressLayer.strokeEnd = _Percentage;
251 | }
252 | else
253 | {
254 | animation.toValue = [NSNumber numberWithFloat:1.0];
255 | }
256 |
257 | animation.duration = Duration;
258 |
259 | //start timer
260 | _timer = [NSTimer scheduledTimerWithTimeInterval:_step
261 | target:self
262 | selector:@selector(numberAnimation)
263 | userInfo:nil
264 | repeats:YES];
265 | [_progressLayer addAnimation:animation forKey:@"strokeEndAnimation"];
266 |
267 | } else {
268 | [CATransaction begin];
269 | [CATransaction setDisableActions:YES];
270 | _progressLabel.text = [NSString stringWithFormat:@"%.0f%%",_Percentage*100];
271 | [CATransaction commit];
272 | }
273 | }
274 |
275 |
276 | -(void)numberAnimation
277 | {
278 | //Duration 动画持续时长
279 | _sumSteps += _step;
280 | float sumSteps = _Percentage /Duration *_sumSteps;
281 | if (_sumSteps >= Duration) {
282 | //close timer
283 | [_timer invalidate];
284 | _timer = nil;
285 | return;
286 | }
287 | _progressLabel.text = [NSString stringWithFormat:@"%.0f%%",sumSteps *100];
288 | }
289 | @end
290 |
--------------------------------------------------------------------------------
/ZFProgressViewExample/ZFProgressView.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFProgressView.m
3 | // ZFProgressView
4 | //
5 | // Created by macOne on 15/9/23.
6 | // Copyright © 2015年 WZF. All rights reserved.
7 | //
8 |
9 | #import "ZFProgressView.h"
10 |
11 | #define Duration 5.0
12 | #define DefaultLineWidth 5
13 | #define GAP 10
14 |
15 | @interface ZFProgressView ()
16 |
17 | @property (nonatomic,strong) CAShapeLayer *backgroundLayer;
18 | @property (nonatomic,strong) CAShapeLayer *progressLayer;
19 | @property (nonatomic,strong) UILabel *progressLabel;
20 | @property (nonatomic,assign) CGFloat sumSteps;
21 | @property (nonatomic,strong) NSTimer *timer;
22 | @property (nonatomic,assign) ZFProgressViewStyle style;
23 |
24 |
25 | @end
26 |
27 | @implementation ZFProgressView
28 | //默认样式 none
29 | -(instancetype) initWithFrame:(CGRect)frame
30 | {
31 | return [self initWithFrame:frame style:ZFProgressViewStyleNone];
32 |
33 | }
34 | - (instancetype) initWithFrame:(CGRect)frame style:(ZFProgressViewStyle)style
35 | {
36 | self = [super initWithFrame:frame];
37 | if (self) {
38 |
39 | [self setBackgroundColor:[UIColor clearColor]];
40 |
41 | self.style = style;
42 | [self layoutViews:style];
43 |
44 | //init default variable
45 | self.backgourndLineWidth = DefaultLineWidth;
46 | self.progressLineWidth = DefaultLineWidth;
47 | self.Percentage = 0;
48 | self.offset = 0;
49 | self.sumSteps = 0;
50 | self.step = 0.1;
51 |
52 |
53 | }
54 | return self;
55 | }
56 |
57 |
58 | -(void) layoutViews:(ZFProgressViewStyle)style
59 | {
60 | [self.progressLabel setTextColor:[UIColor whiteColor]];
61 | self.progressLabel.text = @"0%";
62 | self.progressLabel.textAlignment = NSTextAlignmentCenter;
63 | self.progressLabel.font = [UIFont systemFontOfSize:25 weight:0.4];
64 | [self addSubview:self.progressLabel];
65 |
66 | _backgroundLayer = [CAShapeLayer layer];
67 | _backgroundLayer.frame = self.bounds;
68 | _backgroundLayer.fillColor = nil;
69 | _backgroundLayer.strokeColor = [UIColor brownColor].CGColor;
70 |
71 | _progressLayer = [CAShapeLayer layer];
72 | _progressLayer.frame = self.bounds;
73 | _progressLayer.fillColor = nil;
74 | _progressLayer.strokeColor = [UIColor whiteColor].CGColor;
75 |
76 | switch (style) {
77 | case ZFProgressViewStyleNone:
78 | case ZFProgressViewStyleSquareSegment:
79 | _backgroundLayer.lineCap = kCALineCapSquare;
80 | _backgroundLayer.lineJoin = kCALineCapSquare;
81 |
82 | _progressLayer.lineCap = kCALineCapSquare;
83 | _progressLayer.lineJoin = kCALineCapSquare;
84 | break;
85 |
86 | case ZFProgressViewStyleRoundSegment:
87 | _backgroundLayer.lineCap = kCALineCapRound;
88 | _backgroundLayer.lineJoin = kCALineCapRound;
89 |
90 | _progressLayer.lineCap = kCALineCapRound;
91 | _progressLayer.lineJoin = kCALineCapRound;
92 | break;
93 |
94 | default:
95 | break;
96 | }
97 |
98 | [self.layer addSublayer:_backgroundLayer];
99 | [self.layer addSublayer:_progressLayer];
100 |
101 |
102 | }
103 | #pragma mark - draw circleLine
104 | -(void) setBackgroundCircleLine:(ZFProgressViewStyle)style
105 | {
106 | UIBezierPath *path = [UIBezierPath bezierPath];
107 | if (style == ZFProgressViewStyleNone) {
108 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
109 | self.center.y - self.frame.origin.y)
110 | radius:(self.bounds.size.width - _backgourndLineWidth)/ 2 - _offset
111 | startAngle:0
112 | endAngle:M_PI*2
113 | clockwise:YES];
114 | }
115 | else
116 | {
117 | static float minAngle = 0.0081;
118 |
119 | for (int i = 0; i < ceil(360 / GAP)+1; i++) {
120 | CGFloat angle = (i * (GAP + minAngle) * M_PI / 180.0);
121 |
122 | if (i == 0) {
123 | angle = minAngle * M_PI/180.0;
124 | }
125 |
126 | if (angle >= M_PI *2) {
127 | angle = M_PI *2;
128 | }
129 | UIBezierPath *path1 = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
130 | self.center.y - self.frame.origin.y)
131 | radius:(self.bounds.size.width - _backgourndLineWidth)/ 2 - _offset
132 | startAngle:-M_PI_2 +(i *GAP * M_PI / 180.0)
133 | endAngle:-M_PI_2 + angle
134 | clockwise:YES];
135 |
136 | [path appendPath:path1];
137 |
138 | }
139 |
140 | }
141 |
142 |
143 |
144 |
145 | _backgroundLayer.path = path.CGPath;
146 |
147 | }
148 |
149 | -(void)setProgressCircleLine:(ZFProgressViewStyle)style
150 | {
151 | UIBezierPath *path = [UIBezierPath bezierPath];
152 | if (style == ZFProgressViewStyleNone) {
153 | path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
154 | self.center.y - self.frame.origin.y)
155 | radius:(self.bounds.size.width - _progressLineWidth)/ 2 - _offset
156 | startAngle:-M_PI_2
157 | endAngle:-M_PI_2 + M_PI *2
158 | clockwise:YES];
159 | }
160 | else
161 | {
162 | static float minAngle = 0.0081;
163 | for (int i = 0; i < ceil(360 / GAP *_Percentage)+1; i++) {
164 | CGFloat angle = (i * (GAP + minAngle) * M_PI / 180.0);
165 |
166 | if (i == 0) {
167 | angle = minAngle * M_PI/180.0;
168 | }
169 |
170 | if (angle >= M_PI *2) {
171 | angle = M_PI *2;
172 | }
173 | UIBezierPath *path1 = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x - self.frame.origin.x,
174 | self.center.y - self.frame.origin.y)
175 | radius:(self.bounds.size.width - _progressLineWidth)/ 2 - _offset
176 | startAngle:-M_PI_2 +(i *GAP * M_PI / 180.0)
177 | endAngle:-M_PI_2 + angle
178 | clockwise:YES];
179 |
180 | [path appendPath:path1];
181 |
182 | }
183 |
184 | }
185 |
186 | _progressLayer.path = path.CGPath;
187 | }
188 |
189 |
190 | #pragma mark - setter and getter methond
191 |
192 | -(UILabel *)progressLabel
193 | {
194 | if(!_progressLabel)
195 | {
196 | _progressLabel = [[UILabel alloc] initWithFrame:CGRectMake((self.bounds.size.width - 100)/2, (self.bounds.size.height - 100)/2, 100, 100)];
197 | }
198 | return _progressLabel;
199 | }
200 | -(void)setBackgourndLineWidth:(CGFloat)backgourndLineWidth
201 | {
202 | _backgourndLineWidth = backgourndLineWidth;
203 | _backgroundLayer.lineWidth = backgourndLineWidth;
204 | }
205 |
206 | -(void)setProgressLineWidth:(CGFloat)progressLineWidth
207 | {
208 | _progressLineWidth = progressLineWidth;
209 | _progressLayer.lineWidth = progressLineWidth;
210 | [self setBackgroundCircleLine:self.style];
211 | [self setProgressCircleLine:self.style];
212 | }
213 |
214 | -(void)setPercentage:(CGFloat)Percentage
215 | {
216 | _Percentage = Percentage;
217 | [self setProgressCircleLine:self.style];
218 | ;
219 | }
220 |
221 | -(void)setBackgroundStrokeColor:(UIColor *)backgroundStrokeColor
222 | {
223 | _backgroundStrokeColor = backgroundStrokeColor;
224 | _backgroundLayer.strokeColor = backgroundStrokeColor.CGColor;
225 | }
226 |
227 | -(void)setProgressStrokeColor:(UIColor *)progressStrokeColor
228 | {
229 | _progressStrokeColor = progressStrokeColor;
230 | _progressLayer.strokeColor = progressStrokeColor.CGColor;
231 |
232 | }
233 |
234 | -(void)setDigitTintColor:(UIColor *)digitTintColor
235 | {
236 | _digitTintColor = digitTintColor;
237 | _progressLabel.textColor = digitTintColor;
238 | }
239 |
240 | #pragma mark - progress animated YES or NO
241 | -(void)setProgress:(CGFloat)Percentage Animated:(BOOL)animated
242 | {
243 | self.Percentage = Percentage;
244 | if (animated) {
245 |
246 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
247 | animation.fromValue = [NSNumber numberWithFloat:0.0];
248 | if (self.style == ZFProgressViewStyleNone) {
249 | animation.toValue = [NSNumber numberWithFloat:_Percentage];
250 | _progressLayer.strokeEnd = _Percentage;
251 | }
252 | else
253 | {
254 | animation.toValue = [NSNumber numberWithFloat:1.0];
255 | }
256 |
257 | animation.duration = Duration;
258 |
259 | //start timer
260 | _timer = [NSTimer scheduledTimerWithTimeInterval:_step
261 | target:self
262 | selector:@selector(numberAnimation)
263 | userInfo:nil
264 | repeats:YES];
265 | [_progressLayer addAnimation:animation forKey:@"strokeEndAnimation"];
266 |
267 | } else {
268 | [CATransaction begin];
269 | [CATransaction setDisableActions:YES];
270 | _progressLabel.text = [NSString stringWithFormat:@"%.0f%%",_Percentage*100];
271 | [CATransaction commit];
272 | }
273 | }
274 |
275 |
276 | -(void)numberAnimation
277 | {
278 | //Duration 动画持续时长
279 | _sumSteps += _step;
280 | float sumSteps = _Percentage /Duration *_sumSteps;
281 | if (_sumSteps >= Duration) {
282 | //close timer
283 | [_timer invalidate];
284 | _timer = nil;
285 | return;
286 | }
287 | _progressLabel.text = [NSString stringWithFormat:@"%.0f%%",sumSteps *100];
288 | }
289 | @end
290 |
--------------------------------------------------------------------------------
/ZFProgressViewExample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | DB0379EB1BD8C57C007B89C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DB0379EA1BD8C57C007B89C7 /* main.m */; };
11 | DB0379EE1BD8C57C007B89C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DB0379ED1BD8C57C007B89C7 /* AppDelegate.m */; };
12 | DB0379F11BD8C57C007B89C7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DB0379F01BD8C57C007B89C7 /* ViewController.m */; };
13 | DB0379F41BD8C57C007B89C7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DB0379F21BD8C57C007B89C7 /* Main.storyboard */; };
14 | DB0379F61BD8C57C007B89C7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DB0379F51BD8C57C007B89C7 /* Assets.xcassets */; };
15 | DB0379F91BD8C57C007B89C7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DB0379F71BD8C57C007B89C7 /* LaunchScreen.storyboard */; };
16 | DB037A041BD8C57C007B89C7 /* ZFProgressViewExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DB037A031BD8C57C007B89C7 /* ZFProgressViewExampleTests.m */; };
17 | DB037A0F1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = DB037A0E1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.m */; };
18 | DB037A1E1BD8C5A0007B89C7 /* ZFProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = DB037A1D1BD8C5A0007B89C7 /* ZFProgressView.m */; settings = {ASSET_TAGS = (); }; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | DB037A001BD8C57C007B89C7 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = DB0379DE1BD8C57C007B89C7 /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = DB0379E51BD8C57C007B89C7;
27 | remoteInfo = ZFProgressViewExample;
28 | };
29 | DB037A0B1BD8C57C007B89C7 /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = DB0379DE1BD8C57C007B89C7 /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = DB0379E51BD8C57C007B89C7;
34 | remoteInfo = ZFProgressViewExample;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | DB0379E61BD8C57C007B89C7 /* ZFProgressViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZFProgressViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | DB0379EA1BD8C57C007B89C7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
41 | DB0379EC1BD8C57C007B89C7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
42 | DB0379ED1BD8C57C007B89C7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
43 | DB0379EF1BD8C57C007B89C7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
44 | DB0379F01BD8C57C007B89C7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
45 | DB0379F31BD8C57C007B89C7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | DB0379F51BD8C57C007B89C7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | DB0379F81BD8C57C007B89C7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | DB0379FA1BD8C57C007B89C7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | DB0379FF1BD8C57C007B89C7 /* ZFProgressViewExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZFProgressViewExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | DB037A031BD8C57C007B89C7 /* ZFProgressViewExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZFProgressViewExampleTests.m; sourceTree = ""; };
51 | DB037A051BD8C57C007B89C7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | DB037A0A1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZFProgressViewExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | DB037A0E1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZFProgressViewExampleUITests.m; sourceTree = ""; };
54 | DB037A101BD8C57C007B89C7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
55 | DB037A1C1BD8C5A0007B89C7 /* ZFProgressView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFProgressView.h; sourceTree = ""; };
56 | DB037A1D1BD8C5A0007B89C7 /* ZFProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFProgressView.m; sourceTree = ""; };
57 | /* End PBXFileReference section */
58 |
59 | /* Begin PBXFrameworksBuildPhase section */
60 | DB0379E31BD8C57C007B89C7 /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | DB0379FC1BD8C57C007B89C7 /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | DB037A071BD8C57C007B89C7 /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | );
79 | runOnlyForDeploymentPostprocessing = 0;
80 | };
81 | /* End PBXFrameworksBuildPhase section */
82 |
83 | /* Begin PBXGroup section */
84 | DB0379DD1BD8C57C007B89C7 = {
85 | isa = PBXGroup;
86 | children = (
87 | DB0379E81BD8C57C007B89C7 /* ZFProgressViewExample */,
88 | DB037A021BD8C57C007B89C7 /* ZFProgressViewExampleTests */,
89 | DB037A0D1BD8C57C007B89C7 /* ZFProgressViewExampleUITests */,
90 | DB0379E71BD8C57C007B89C7 /* Products */,
91 | );
92 | sourceTree = "";
93 | };
94 | DB0379E71BD8C57C007B89C7 /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | DB0379E61BD8C57C007B89C7 /* ZFProgressViewExample.app */,
98 | DB0379FF1BD8C57C007B89C7 /* ZFProgressViewExampleTests.xctest */,
99 | DB037A0A1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.xctest */,
100 | );
101 | name = Products;
102 | sourceTree = "";
103 | };
104 | DB0379E81BD8C57C007B89C7 /* ZFProgressViewExample */ = {
105 | isa = PBXGroup;
106 | children = (
107 | DB0379EC1BD8C57C007B89C7 /* AppDelegate.h */,
108 | DB0379ED1BD8C57C007B89C7 /* AppDelegate.m */,
109 | DB0379EF1BD8C57C007B89C7 /* ViewController.h */,
110 | DB0379F01BD8C57C007B89C7 /* ViewController.m */,
111 | DB0379F21BD8C57C007B89C7 /* Main.storyboard */,
112 | DB0379F51BD8C57C007B89C7 /* Assets.xcassets */,
113 | DB0379F71BD8C57C007B89C7 /* LaunchScreen.storyboard */,
114 | DB0379FA1BD8C57C007B89C7 /* Info.plist */,
115 | DB037A1C1BD8C5A0007B89C7 /* ZFProgressView.h */,
116 | DB037A1D1BD8C5A0007B89C7 /* ZFProgressView.m */,
117 | DB0379E91BD8C57C007B89C7 /* Supporting Files */,
118 | );
119 | path = ZFProgressViewExample;
120 | sourceTree = "";
121 | };
122 | DB0379E91BD8C57C007B89C7 /* Supporting Files */ = {
123 | isa = PBXGroup;
124 | children = (
125 | DB0379EA1BD8C57C007B89C7 /* main.m */,
126 | );
127 | name = "Supporting Files";
128 | sourceTree = "";
129 | };
130 | DB037A021BD8C57C007B89C7 /* ZFProgressViewExampleTests */ = {
131 | isa = PBXGroup;
132 | children = (
133 | DB037A031BD8C57C007B89C7 /* ZFProgressViewExampleTests.m */,
134 | DB037A051BD8C57C007B89C7 /* Info.plist */,
135 | );
136 | path = ZFProgressViewExampleTests;
137 | sourceTree = "";
138 | };
139 | DB037A0D1BD8C57C007B89C7 /* ZFProgressViewExampleUITests */ = {
140 | isa = PBXGroup;
141 | children = (
142 | DB037A0E1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.m */,
143 | DB037A101BD8C57C007B89C7 /* Info.plist */,
144 | );
145 | path = ZFProgressViewExampleUITests;
146 | sourceTree = "";
147 | };
148 | /* End PBXGroup section */
149 |
150 | /* Begin PBXNativeTarget section */
151 | DB0379E51BD8C57C007B89C7 /* ZFProgressViewExample */ = {
152 | isa = PBXNativeTarget;
153 | buildConfigurationList = DB037A131BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExample" */;
154 | buildPhases = (
155 | DB0379E21BD8C57C007B89C7 /* Sources */,
156 | DB0379E31BD8C57C007B89C7 /* Frameworks */,
157 | DB0379E41BD8C57C007B89C7 /* Resources */,
158 | );
159 | buildRules = (
160 | );
161 | dependencies = (
162 | );
163 | name = ZFProgressViewExample;
164 | productName = ZFProgressViewExample;
165 | productReference = DB0379E61BD8C57C007B89C7 /* ZFProgressViewExample.app */;
166 | productType = "com.apple.product-type.application";
167 | };
168 | DB0379FE1BD8C57C007B89C7 /* ZFProgressViewExampleTests */ = {
169 | isa = PBXNativeTarget;
170 | buildConfigurationList = DB037A161BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExampleTests" */;
171 | buildPhases = (
172 | DB0379FB1BD8C57C007B89C7 /* Sources */,
173 | DB0379FC1BD8C57C007B89C7 /* Frameworks */,
174 | DB0379FD1BD8C57C007B89C7 /* Resources */,
175 | );
176 | buildRules = (
177 | );
178 | dependencies = (
179 | DB037A011BD8C57C007B89C7 /* PBXTargetDependency */,
180 | );
181 | name = ZFProgressViewExampleTests;
182 | productName = ZFProgressViewExampleTests;
183 | productReference = DB0379FF1BD8C57C007B89C7 /* ZFProgressViewExampleTests.xctest */;
184 | productType = "com.apple.product-type.bundle.unit-test";
185 | };
186 | DB037A091BD8C57C007B89C7 /* ZFProgressViewExampleUITests */ = {
187 | isa = PBXNativeTarget;
188 | buildConfigurationList = DB037A191BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExampleUITests" */;
189 | buildPhases = (
190 | DB037A061BD8C57C007B89C7 /* Sources */,
191 | DB037A071BD8C57C007B89C7 /* Frameworks */,
192 | DB037A081BD8C57C007B89C7 /* Resources */,
193 | );
194 | buildRules = (
195 | );
196 | dependencies = (
197 | DB037A0C1BD8C57C007B89C7 /* PBXTargetDependency */,
198 | );
199 | name = ZFProgressViewExampleUITests;
200 | productName = ZFProgressViewExampleUITests;
201 | productReference = DB037A0A1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.xctest */;
202 | productType = "com.apple.product-type.bundle.ui-testing";
203 | };
204 | /* End PBXNativeTarget section */
205 |
206 | /* Begin PBXProject section */
207 | DB0379DE1BD8C57C007B89C7 /* Project object */ = {
208 | isa = PBXProject;
209 | attributes = {
210 | LastUpgradeCheck = 0700;
211 | ORGANIZATIONNAME = WZF;
212 | TargetAttributes = {
213 | DB0379E51BD8C57C007B89C7 = {
214 | CreatedOnToolsVersion = 7.0;
215 | };
216 | DB0379FE1BD8C57C007B89C7 = {
217 | CreatedOnToolsVersion = 7.0;
218 | TestTargetID = DB0379E51BD8C57C007B89C7;
219 | };
220 | DB037A091BD8C57C007B89C7 = {
221 | CreatedOnToolsVersion = 7.0;
222 | TestTargetID = DB0379E51BD8C57C007B89C7;
223 | };
224 | };
225 | };
226 | buildConfigurationList = DB0379E11BD8C57C007B89C7 /* Build configuration list for PBXProject "ZFProgressViewExample" */;
227 | compatibilityVersion = "Xcode 3.2";
228 | developmentRegion = English;
229 | hasScannedForEncodings = 0;
230 | knownRegions = (
231 | en,
232 | Base,
233 | );
234 | mainGroup = DB0379DD1BD8C57C007B89C7;
235 | productRefGroup = DB0379E71BD8C57C007B89C7 /* Products */;
236 | projectDirPath = "";
237 | projectRoot = "";
238 | targets = (
239 | DB0379E51BD8C57C007B89C7 /* ZFProgressViewExample */,
240 | DB0379FE1BD8C57C007B89C7 /* ZFProgressViewExampleTests */,
241 | DB037A091BD8C57C007B89C7 /* ZFProgressViewExampleUITests */,
242 | );
243 | };
244 | /* End PBXProject section */
245 |
246 | /* Begin PBXResourcesBuildPhase section */
247 | DB0379E41BD8C57C007B89C7 /* Resources */ = {
248 | isa = PBXResourcesBuildPhase;
249 | buildActionMask = 2147483647;
250 | files = (
251 | DB0379F91BD8C57C007B89C7 /* LaunchScreen.storyboard in Resources */,
252 | DB0379F61BD8C57C007B89C7 /* Assets.xcassets in Resources */,
253 | DB0379F41BD8C57C007B89C7 /* Main.storyboard in Resources */,
254 | );
255 | runOnlyForDeploymentPostprocessing = 0;
256 | };
257 | DB0379FD1BD8C57C007B89C7 /* Resources */ = {
258 | isa = PBXResourcesBuildPhase;
259 | buildActionMask = 2147483647;
260 | files = (
261 | );
262 | runOnlyForDeploymentPostprocessing = 0;
263 | };
264 | DB037A081BD8C57C007B89C7 /* Resources */ = {
265 | isa = PBXResourcesBuildPhase;
266 | buildActionMask = 2147483647;
267 | files = (
268 | );
269 | runOnlyForDeploymentPostprocessing = 0;
270 | };
271 | /* End PBXResourcesBuildPhase section */
272 |
273 | /* Begin PBXSourcesBuildPhase section */
274 | DB0379E21BD8C57C007B89C7 /* Sources */ = {
275 | isa = PBXSourcesBuildPhase;
276 | buildActionMask = 2147483647;
277 | files = (
278 | DB0379F11BD8C57C007B89C7 /* ViewController.m in Sources */,
279 | DB037A1E1BD8C5A0007B89C7 /* ZFProgressView.m in Sources */,
280 | DB0379EE1BD8C57C007B89C7 /* AppDelegate.m in Sources */,
281 | DB0379EB1BD8C57C007B89C7 /* main.m in Sources */,
282 | );
283 | runOnlyForDeploymentPostprocessing = 0;
284 | };
285 | DB0379FB1BD8C57C007B89C7 /* Sources */ = {
286 | isa = PBXSourcesBuildPhase;
287 | buildActionMask = 2147483647;
288 | files = (
289 | DB037A041BD8C57C007B89C7 /* ZFProgressViewExampleTests.m in Sources */,
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | };
293 | DB037A061BD8C57C007B89C7 /* Sources */ = {
294 | isa = PBXSourcesBuildPhase;
295 | buildActionMask = 2147483647;
296 | files = (
297 | DB037A0F1BD8C57C007B89C7 /* ZFProgressViewExampleUITests.m in Sources */,
298 | );
299 | runOnlyForDeploymentPostprocessing = 0;
300 | };
301 | /* End PBXSourcesBuildPhase section */
302 |
303 | /* Begin PBXTargetDependency section */
304 | DB037A011BD8C57C007B89C7 /* PBXTargetDependency */ = {
305 | isa = PBXTargetDependency;
306 | target = DB0379E51BD8C57C007B89C7 /* ZFProgressViewExample */;
307 | targetProxy = DB037A001BD8C57C007B89C7 /* PBXContainerItemProxy */;
308 | };
309 | DB037A0C1BD8C57C007B89C7 /* PBXTargetDependency */ = {
310 | isa = PBXTargetDependency;
311 | target = DB0379E51BD8C57C007B89C7 /* ZFProgressViewExample */;
312 | targetProxy = DB037A0B1BD8C57C007B89C7 /* PBXContainerItemProxy */;
313 | };
314 | /* End PBXTargetDependency section */
315 |
316 | /* Begin PBXVariantGroup section */
317 | DB0379F21BD8C57C007B89C7 /* Main.storyboard */ = {
318 | isa = PBXVariantGroup;
319 | children = (
320 | DB0379F31BD8C57C007B89C7 /* Base */,
321 | );
322 | name = Main.storyboard;
323 | sourceTree = "";
324 | };
325 | DB0379F71BD8C57C007B89C7 /* LaunchScreen.storyboard */ = {
326 | isa = PBXVariantGroup;
327 | children = (
328 | DB0379F81BD8C57C007B89C7 /* Base */,
329 | );
330 | name = LaunchScreen.storyboard;
331 | sourceTree = "";
332 | };
333 | /* End PBXVariantGroup section */
334 |
335 | /* Begin XCBuildConfiguration section */
336 | DB037A111BD8C57C007B89C7 /* Debug */ = {
337 | isa = XCBuildConfiguration;
338 | buildSettings = {
339 | ALWAYS_SEARCH_USER_PATHS = NO;
340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
341 | CLANG_CXX_LIBRARY = "libc++";
342 | CLANG_ENABLE_MODULES = YES;
343 | CLANG_ENABLE_OBJC_ARC = YES;
344 | CLANG_WARN_BOOL_CONVERSION = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
347 | CLANG_WARN_EMPTY_BODY = YES;
348 | CLANG_WARN_ENUM_CONVERSION = YES;
349 | CLANG_WARN_INT_CONVERSION = YES;
350 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
351 | CLANG_WARN_UNREACHABLE_CODE = YES;
352 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
353 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
354 | COPY_PHASE_STRIP = NO;
355 | DEBUG_INFORMATION_FORMAT = dwarf;
356 | ENABLE_STRICT_OBJC_MSGSEND = YES;
357 | ENABLE_TESTABILITY = YES;
358 | GCC_C_LANGUAGE_STANDARD = gnu99;
359 | GCC_DYNAMIC_NO_PIC = NO;
360 | GCC_NO_COMMON_BLOCKS = YES;
361 | GCC_OPTIMIZATION_LEVEL = 0;
362 | GCC_PREPROCESSOR_DEFINITIONS = (
363 | "DEBUG=1",
364 | "$(inherited)",
365 | );
366 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
367 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
368 | GCC_WARN_UNDECLARED_SELECTOR = YES;
369 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
370 | GCC_WARN_UNUSED_FUNCTION = YES;
371 | GCC_WARN_UNUSED_VARIABLE = YES;
372 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
373 | MTL_ENABLE_DEBUG_INFO = YES;
374 | ONLY_ACTIVE_ARCH = YES;
375 | SDKROOT = iphoneos;
376 | TARGETED_DEVICE_FAMILY = "1,2";
377 | };
378 | name = Debug;
379 | };
380 | DB037A121BD8C57C007B89C7 /* Release */ = {
381 | isa = XCBuildConfiguration;
382 | buildSettings = {
383 | ALWAYS_SEARCH_USER_PATHS = NO;
384 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
385 | CLANG_CXX_LIBRARY = "libc++";
386 | CLANG_ENABLE_MODULES = YES;
387 | CLANG_ENABLE_OBJC_ARC = YES;
388 | CLANG_WARN_BOOL_CONVERSION = YES;
389 | CLANG_WARN_CONSTANT_CONVERSION = YES;
390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
391 | CLANG_WARN_EMPTY_BODY = YES;
392 | CLANG_WARN_ENUM_CONVERSION = YES;
393 | CLANG_WARN_INT_CONVERSION = YES;
394 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
395 | CLANG_WARN_UNREACHABLE_CODE = YES;
396 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
397 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
398 | COPY_PHASE_STRIP = NO;
399 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
400 | ENABLE_NS_ASSERTIONS = NO;
401 | ENABLE_STRICT_OBJC_MSGSEND = YES;
402 | GCC_C_LANGUAGE_STANDARD = gnu99;
403 | GCC_NO_COMMON_BLOCKS = YES;
404 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
405 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
406 | GCC_WARN_UNDECLARED_SELECTOR = YES;
407 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
408 | GCC_WARN_UNUSED_FUNCTION = YES;
409 | GCC_WARN_UNUSED_VARIABLE = YES;
410 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
411 | MTL_ENABLE_DEBUG_INFO = NO;
412 | SDKROOT = iphoneos;
413 | TARGETED_DEVICE_FAMILY = "1,2";
414 | VALIDATE_PRODUCT = YES;
415 | };
416 | name = Release;
417 | };
418 | DB037A141BD8C57C007B89C7 /* Debug */ = {
419 | isa = XCBuildConfiguration;
420 | buildSettings = {
421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
422 | INFOPLIST_FILE = ZFProgressViewExample/Info.plist;
423 | IPHONEOS_DEPLOYMENT_TARGET = 6.1;
424 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
425 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExample;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | };
428 | name = Debug;
429 | };
430 | DB037A151BD8C57C007B89C7 /* Release */ = {
431 | isa = XCBuildConfiguration;
432 | buildSettings = {
433 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
434 | INFOPLIST_FILE = ZFProgressViewExample/Info.plist;
435 | IPHONEOS_DEPLOYMENT_TARGET = 6.1;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExample;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | };
440 | name = Release;
441 | };
442 | DB037A171BD8C57C007B89C7 /* Debug */ = {
443 | isa = XCBuildConfiguration;
444 | buildSettings = {
445 | BUNDLE_LOADER = "$(TEST_HOST)";
446 | INFOPLIST_FILE = ZFProgressViewExampleTests/Info.plist;
447 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
448 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExampleTests;
449 | PRODUCT_NAME = "$(TARGET_NAME)";
450 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZFProgressViewExample.app/ZFProgressViewExample";
451 | };
452 | name = Debug;
453 | };
454 | DB037A181BD8C57C007B89C7 /* Release */ = {
455 | isa = XCBuildConfiguration;
456 | buildSettings = {
457 | BUNDLE_LOADER = "$(TEST_HOST)";
458 | INFOPLIST_FILE = ZFProgressViewExampleTests/Info.plist;
459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
460 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExampleTests;
461 | PRODUCT_NAME = "$(TARGET_NAME)";
462 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZFProgressViewExample.app/ZFProgressViewExample";
463 | };
464 | name = Release;
465 | };
466 | DB037A1A1BD8C57C007B89C7 /* Debug */ = {
467 | isa = XCBuildConfiguration;
468 | buildSettings = {
469 | INFOPLIST_FILE = ZFProgressViewExampleUITests/Info.plist;
470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
471 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExampleUITests;
472 | PRODUCT_NAME = "$(TARGET_NAME)";
473 | TEST_TARGET_NAME = ZFProgressViewExample;
474 | USES_XCTRUNNER = YES;
475 | };
476 | name = Debug;
477 | };
478 | DB037A1B1BD8C57C007B89C7 /* Release */ = {
479 | isa = XCBuildConfiguration;
480 | buildSettings = {
481 | INFOPLIST_FILE = ZFProgressViewExampleUITests/Info.plist;
482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
483 | PRODUCT_BUNDLE_IDENTIFIER = WZF.ZFProgressViewExampleUITests;
484 | PRODUCT_NAME = "$(TARGET_NAME)";
485 | TEST_TARGET_NAME = ZFProgressViewExample;
486 | USES_XCTRUNNER = YES;
487 | };
488 | name = Release;
489 | };
490 | /* End XCBuildConfiguration section */
491 |
492 | /* Begin XCConfigurationList section */
493 | DB0379E11BD8C57C007B89C7 /* Build configuration list for PBXProject "ZFProgressViewExample" */ = {
494 | isa = XCConfigurationList;
495 | buildConfigurations = (
496 | DB037A111BD8C57C007B89C7 /* Debug */,
497 | DB037A121BD8C57C007B89C7 /* Release */,
498 | );
499 | defaultConfigurationIsVisible = 0;
500 | defaultConfigurationName = Release;
501 | };
502 | DB037A131BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExample" */ = {
503 | isa = XCConfigurationList;
504 | buildConfigurations = (
505 | DB037A141BD8C57C007B89C7 /* Debug */,
506 | DB037A151BD8C57C007B89C7 /* Release */,
507 | );
508 | defaultConfigurationIsVisible = 0;
509 | defaultConfigurationName = Release;
510 | };
511 | DB037A161BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExampleTests" */ = {
512 | isa = XCConfigurationList;
513 | buildConfigurations = (
514 | DB037A171BD8C57C007B89C7 /* Debug */,
515 | DB037A181BD8C57C007B89C7 /* Release */,
516 | );
517 | defaultConfigurationIsVisible = 0;
518 | defaultConfigurationName = Release;
519 | };
520 | DB037A191BD8C57C007B89C7 /* Build configuration list for PBXNativeTarget "ZFProgressViewExampleUITests" */ = {
521 | isa = XCConfigurationList;
522 | buildConfigurations = (
523 | DB037A1A1BD8C57C007B89C7 /* Debug */,
524 | DB037A1B1BD8C57C007B89C7 /* Release */,
525 | );
526 | defaultConfigurationIsVisible = 0;
527 | defaultConfigurationName = Release;
528 | };
529 | /* End XCConfigurationList section */
530 | };
531 | rootObject = DB0379DE1BD8C57C007B89C7 /* Project object */;
532 | }
533 |
--------------------------------------------------------------------------------