├── README.md ├── TimingButtonDemo.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Lance.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ └── Lance.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── TimingButtonDemo.xcscheme └── project.pbxproj ├── TimingButtonDemo ├── ViewController.h ├── AppDelegate.h ├── main.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── TimerButton.h ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.m ├── ViewController.m └── TimerButton.m ├── TimingButtonDemoTests ├── Info.plist └── TimingButtonDemoTests.m └── TimingButtonDemoUITests ├── Info.plist └── TimingButtonDemoUITests.m /README.md: -------------------------------------------------------------------------------- 1 | #TimerButton 2 | 3 | 自定义倒计时按钮,支持storyboard,xib,纯代码,支持block回调使用以及delegate委托使用。按钮颜色,背景图,背景色,自己根据项目色调自己赋值,代码创建的时候,其余属性均在初始化方法中对应赋值即可,storyboard或者xib创建依旧需要自己对应相应的按钮显示title。使用中如果发现有不够好的地方,欢迎反馈,邮箱744542786@qq.com ^_^ -------------------------------------------------------------------------------- /TimingButtonDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TimingButtonDemo.xcodeproj/project.xcworkspace/xcuserdata/Lance.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmbitiousLance/TimerButton/HEAD/TimingButtonDemo.xcodeproj/project.xcworkspace/xcuserdata/Lance.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TimingButtonDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // TimingButtonDemo 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /TimingButtonDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // TimingButtonDemo 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. 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 | -------------------------------------------------------------------------------- /TimingButtonDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TimingButtonDemo 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. 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 | -------------------------------------------------------------------------------- /TimingButtonDemo/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 | } -------------------------------------------------------------------------------- /TimingButtonDemoTests/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 | -------------------------------------------------------------------------------- /TimingButtonDemoUITests/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 | -------------------------------------------------------------------------------- /TimingButtonDemo.xcodeproj/xcuserdata/Lance.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TimingButtonDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 7E71F9031C4DDA760015793F 16 | 17 | primary 18 | 19 | 20 | 7E71F91C1C4DDA760015793F 21 | 22 | primary 23 | 24 | 25 | 7E71F9271C4DDA760015793F 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /TimingButtonDemoTests/TimingButtonDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // TimingButtonDemoTests.m 3 | // TimingButtonDemoTests 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TimingButtonDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation TimingButtonDemoTests 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 | -------------------------------------------------------------------------------- /TimingButtonDemo/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 | -------------------------------------------------------------------------------- /TimingButtonDemoUITests/TimingButtonDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // TimingButtonDemoUITests.m 3 | // TimingButtonDemoUITests 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TimingButtonDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation TimingButtonDemoUITests 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 | -------------------------------------------------------------------------------- /TimingButtonDemo/TimerButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // TimerButton.h 3 | // KidApp 4 | // 5 | // Created by Lance Wu on 16/1/18. 6 | // Copyright © 2016年 Lance. All rights reserved. 7 | // 8 | 9 | #import 10 | @class TimerButton; 11 | 12 | // An enumeration which can tell you the button state in real time. 13 | typedef NS_ENUM(NSUInteger, TimeState){ 14 | TimeStart = 0, 15 | TimeDuration, 16 | TimeFinish 17 | }; 18 | 19 | typedef void (^progressBlock)(TimerButton *button, TimeState state, NSString *restTime); 20 | 21 | @protocol TimingDelegate 22 | 23 | @optional 24 | /** 25 | * @param button present button 26 | * @param state present state 27 | */ 28 | - (void)startRunningByButton:(TimerButton *)button state:(TimeState)state restTime:(NSString *)restTime; 29 | 30 | @end 31 | 32 | @interface TimerButton : UIButton 33 | 34 | @property (nonatomic, strong) progressBlock progressBlock; 35 | @property (nonatomic, strong) iddelegate; 36 | 37 | - (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title durationTitle:(NSString *)durationTitle seconds:(NSInteger)seconds progressBlock:(progressBlock)progressBlock; 38 | - (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title durationTitle:(NSString *)durationTitle seconds:(NSInteger)seconds delegate:(id)delegate; 39 | 40 | // When you use storyboard or xib, you have to use these methods to realize the function. 41 | // Warning: You have to select the custom type of the button if the button is in the storyboard or xib, or the title will shine every second. 42 | 43 | - (void)startWithSeconds:(NSInteger)seconds delegate:(id)delegate; 44 | - (void)startWithSeconds:(NSInteger)seconds progressBlock:(progressBlock)progressBlock; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /TimingButtonDemo/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 | -------------------------------------------------------------------------------- /TimingButtonDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // TimingButtonDemo 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. 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 | -------------------------------------------------------------------------------- /TimingButtonDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // TimingButtonDemo 4 | // 5 | // Created by Lance Wu on 16/1/19. 6 | // Copyright © 2016年 Lance Wu. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "TimerButton.h" 11 | 12 | @interface ViewController () 13 | { 14 | __weak IBOutlet TimerButton *_storyboardBtn; 15 | } 16 | @end 17 | 18 | @implementation ViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | self.view.backgroundColor = [UIColor whiteColor]; 24 | 25 | [_storyboardBtn setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled]; 26 | _storyboardBtn.tag = 100; 27 | [_storyboardBtn startWithSeconds:60 delegate:self]; 28 | 29 | 30 | TimerButton *blockBtn = [[TimerButton alloc] initWithFrame:CGRectMake(100, 100, 150, 30) title:@"获取验证码" durationTitle:@"重新获取" seconds:60 progressBlock:^(TimerButton *button, TimeState state, NSString *restTime) { 31 | if (state == TimeStart) { 32 | NSLog(@"计时开始"); 33 | } 34 | }]; 35 | [blockBtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; 36 | [blockBtn setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled]; 37 | [self.view addSubview:blockBtn]; 38 | 39 | 40 | TimerButton *delegateBtn = [[TimerButton alloc] initWithFrame:CGRectMake(100, 200, 150, 30) title:@"获取验证码" durationTitle:@"重新获取" seconds:60 delegate:self]; 41 | [delegateBtn setTitleColor:[UIColor greenColor] forState:UIControlStateNormal]; 42 | [delegateBtn setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled]; 43 | [self.view addSubview:delegateBtn]; 44 | } 45 | 46 | #pragma mark - TimingDelegate 47 | - (void)startRunningByButton:(TimerButton *)button state:(TimeState)state restTime:(NSString *)restTime{ 48 | if (state == TimeStart) { 49 | NSLog(@"计时开始"); 50 | }else{ 51 | if (button.tag == 100) { 52 | if (state == TimeDuration) { 53 | [button setTitle:[NSString stringWithFormat:@"重新发送(%@s)",restTime] forState:UIControlStateNormal]; 54 | }else{ 55 | [button setTitle:@"重新发送" forState:UIControlStateNormal]; 56 | } 57 | } 58 | } 59 | } 60 | 61 | - (void)didReceiveMemoryWarning { 62 | [super didReceiveMemoryWarning]; 63 | // Dispose of any resources that can be recreated. 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /TimingButtonDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /TimingButtonDemo/TimerButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // TimerButton.m 3 | // KidApp 4 | // 5 | // Created by Lance Wu on 16/1/18. 6 | // Copyright © 2016年 Lance. All rights reserved. 7 | // 8 | 9 | #import "TimerButton.h" 10 | 11 | @interface TimerButton () 12 | @property (nonatomic, assign) NSInteger seconds; 13 | @property (nonatomic, strong) NSString *durationTitle; 14 | @end 15 | 16 | @implementation TimerButton 17 | 18 | #pragma mark - init 19 | - (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title durationTitle:(NSString *)durationTitle seconds:(NSInteger)seconds progressBlock:(progressBlock)progressBlock{ 20 | if (self = [super initWithFrame:frame]) { 21 | _durationTitle = durationTitle; 22 | [self setTitle:title forState:UIControlStateNormal]; 23 | [self addTargetActionWithSeconds:seconds delegate:nil progressBlock:progressBlock]; 24 | } 25 | return self; 26 | } 27 | 28 | - (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title durationTitle:(NSString *)durationTitle seconds:(NSInteger)seconds delegate:(id)delegate{ 29 | if (self = [super initWithFrame:frame]) { 30 | _durationTitle = durationTitle; 31 | [self setTitle:title forState:UIControlStateNormal]; 32 | [self addTargetActionWithSeconds:seconds delegate:delegate progressBlock:nil]; 33 | } 34 | return self; 35 | } 36 | 37 | - (void)startWithSeconds:(NSInteger)seconds delegate:(id)delegate{ 38 | [self addTargetActionWithSeconds:seconds delegate:delegate progressBlock:nil]; 39 | } 40 | 41 | - (void)startWithSeconds:(NSInteger)seconds progressBlock:(progressBlock)progressBlock{ 42 | [self addTargetActionWithSeconds:seconds delegate:nil progressBlock:progressBlock]; 43 | } 44 | 45 | - (void)addTargetActionWithSeconds:(NSInteger)seconds delegate:(id)delegate progressBlock:(progressBlock)progressBlock{ 46 | _seconds = seconds; 47 | _delegate = delegate; 48 | _progressBlock = progressBlock; 49 | [self addTarget:self action:@selector(startCountDown) forControlEvents:UIControlEventTouchUpInside]; 50 | } 51 | 52 | #pragma mark - CountDown 53 | - (void)startCountDown{ 54 | //timeStart 55 | if (_delegate && [_delegate respondsToSelector:@selector(startRunningByButton:state:restTime:)]) { 56 | [_delegate startRunningByButton:self state:TimeStart restTime:nil]; 57 | } 58 | if (_progressBlock) { 59 | _progressBlock(self,TimeStart,nil); 60 | } 61 | 62 | __block NSInteger timeout = _seconds-1; //倒计时时间 63 | dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); 64 | dispatch_source_t _timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0,queue); 65 | dispatch_source_set_timer(_timer,dispatch_walltime(NULL, 0),1.0*NSEC_PER_SEC, 0); //每秒执行 66 | dispatch_source_set_event_handler(_timer, ^{ 67 | if(timeout<=0){ 68 | dispatch_source_cancel(_timer); 69 | dispatch_async(dispatch_get_main_queue(), ^{ 70 | self.enabled = YES; 71 | if (_durationTitle) { 72 | [self setTitle:_durationTitle forState:UIControlStateNormal]; 73 | } 74 | //timeFinish 75 | if (_delegate && [_delegate respondsToSelector:@selector(startRunningByButton:state:restTime:)]) { 76 | [_delegate startRunningByButton:self state:TimeFinish restTime:nil]; 77 | } 78 | if (_progressBlock) { 79 | _progressBlock(self,TimeFinish,nil); 80 | } 81 | 82 | }); 83 | }else{ 84 | NSInteger seconds = timeout % _seconds; 85 | NSString *restTime = [NSString stringWithFormat:@"%.2ld", (long)seconds]; 86 | dispatch_async(dispatch_get_main_queue(), ^{ 87 | self.enabled = NO; 88 | if (_durationTitle) { 89 | [self setTitle:[NSString stringWithFormat:@"%@(%@s)",_durationTitle,restTime] forState:UIControlStateNormal]; 90 | } 91 | //timeDuration 92 | if (_delegate && [_delegate respondsToSelector:@selector(startRunningByButton:state:restTime:)]) { 93 | [_delegate startRunningByButton:self state:TimeDuration restTime:restTime]; 94 | } 95 | if (_progressBlock) { 96 | _progressBlock(self,TimeDuration,restTime); 97 | } 98 | }); 99 | timeout--; 100 | } 101 | }); 102 | dispatch_resume(_timer); 103 | 104 | } 105 | 106 | @end 107 | -------------------------------------------------------------------------------- /TimingButtonDemo.xcodeproj/xcuserdata/Lance.xcuserdatad/xcschemes/TimingButtonDemo.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 | -------------------------------------------------------------------------------- /TimingButtonDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7E71F9091C4DDA760015793F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F9081C4DDA760015793F /* main.m */; }; 11 | 7E71F90C1C4DDA760015793F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F90B1C4DDA760015793F /* AppDelegate.m */; }; 12 | 7E71F90F1C4DDA760015793F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F90E1C4DDA760015793F /* ViewController.m */; }; 13 | 7E71F9121C4DDA760015793F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7E71F9101C4DDA760015793F /* Main.storyboard */; }; 14 | 7E71F9141C4DDA760015793F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7E71F9131C4DDA760015793F /* Assets.xcassets */; }; 15 | 7E71F9171C4DDA760015793F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7E71F9151C4DDA760015793F /* LaunchScreen.storyboard */; }; 16 | 7E71F9221C4DDA760015793F /* TimingButtonDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F9211C4DDA760015793F /* TimingButtonDemoTests.m */; }; 17 | 7E71F92D1C4DDA760015793F /* TimingButtonDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F92C1C4DDA760015793F /* TimingButtonDemoUITests.m */; }; 18 | 7E71F93C1C4DDA990015793F /* TimerButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E71F93B1C4DDA990015793F /* TimerButton.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 7E71F91E1C4DDA760015793F /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 7E71F8FC1C4DDA760015793F /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 7E71F9031C4DDA760015793F; 27 | remoteInfo = TimingButtonDemo; 28 | }; 29 | 7E71F9291C4DDA760015793F /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 7E71F8FC1C4DDA760015793F /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 7E71F9031C4DDA760015793F; 34 | remoteInfo = TimingButtonDemo; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 7E71F9041C4DDA760015793F /* TimingButtonDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TimingButtonDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 7E71F9081C4DDA760015793F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | 7E71F90A1C4DDA760015793F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 7E71F90B1C4DDA760015793F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 7E71F90D1C4DDA760015793F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 44 | 7E71F90E1C4DDA760015793F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 45 | 7E71F9111C4DDA760015793F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 7E71F9131C4DDA760015793F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 7E71F9161C4DDA760015793F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 7E71F9181C4DDA760015793F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 7E71F91D1C4DDA760015793F /* TimingButtonDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TimingButtonDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 7E71F9211C4DDA760015793F /* TimingButtonDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TimingButtonDemoTests.m; sourceTree = ""; }; 51 | 7E71F9231C4DDA760015793F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 7E71F9281C4DDA760015793F /* TimingButtonDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TimingButtonDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 7E71F92C1C4DDA760015793F /* TimingButtonDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TimingButtonDemoUITests.m; sourceTree = ""; }; 54 | 7E71F92E1C4DDA760015793F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 7E71F93A1C4DDA990015793F /* TimerButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TimerButton.h; sourceTree = ""; }; 56 | 7E71F93B1C4DDA990015793F /* TimerButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TimerButton.m; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 7E71F9011C4DDA760015793F /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 7E71F91A1C4DDA760015793F /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 7E71F9251C4DDA760015793F /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | 7E71F8FB1C4DDA760015793F = { 85 | isa = PBXGroup; 86 | children = ( 87 | 7E71F9061C4DDA760015793F /* TimingButtonDemo */, 88 | 7E71F9201C4DDA760015793F /* TimingButtonDemoTests */, 89 | 7E71F92B1C4DDA760015793F /* TimingButtonDemoUITests */, 90 | 7E71F9051C4DDA760015793F /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 7E71F9051C4DDA760015793F /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 7E71F9041C4DDA760015793F /* TimingButtonDemo.app */, 98 | 7E71F91D1C4DDA760015793F /* TimingButtonDemoTests.xctest */, 99 | 7E71F9281C4DDA760015793F /* TimingButtonDemoUITests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 7E71F9061C4DDA760015793F /* TimingButtonDemo */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 7E71F93A1C4DDA990015793F /* TimerButton.h */, 108 | 7E71F93B1C4DDA990015793F /* TimerButton.m */, 109 | 7E71F90A1C4DDA760015793F /* AppDelegate.h */, 110 | 7E71F90B1C4DDA760015793F /* AppDelegate.m */, 111 | 7E71F90D1C4DDA760015793F /* ViewController.h */, 112 | 7E71F90E1C4DDA760015793F /* ViewController.m */, 113 | 7E71F9101C4DDA760015793F /* Main.storyboard */, 114 | 7E71F9131C4DDA760015793F /* Assets.xcassets */, 115 | 7E71F9151C4DDA760015793F /* LaunchScreen.storyboard */, 116 | 7E71F9181C4DDA760015793F /* Info.plist */, 117 | 7E71F9071C4DDA760015793F /* Supporting Files */, 118 | ); 119 | path = TimingButtonDemo; 120 | sourceTree = ""; 121 | }; 122 | 7E71F9071C4DDA760015793F /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 7E71F9081C4DDA760015793F /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | 7E71F9201C4DDA760015793F /* TimingButtonDemoTests */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 7E71F9211C4DDA760015793F /* TimingButtonDemoTests.m */, 134 | 7E71F9231C4DDA760015793F /* Info.plist */, 135 | ); 136 | path = TimingButtonDemoTests; 137 | sourceTree = ""; 138 | }; 139 | 7E71F92B1C4DDA760015793F /* TimingButtonDemoUITests */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 7E71F92C1C4DDA760015793F /* TimingButtonDemoUITests.m */, 143 | 7E71F92E1C4DDA760015793F /* Info.plist */, 144 | ); 145 | path = TimingButtonDemoUITests; 146 | sourceTree = ""; 147 | }; 148 | /* End PBXGroup section */ 149 | 150 | /* Begin PBXNativeTarget section */ 151 | 7E71F9031C4DDA760015793F /* TimingButtonDemo */ = { 152 | isa = PBXNativeTarget; 153 | buildConfigurationList = 7E71F9311C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemo" */; 154 | buildPhases = ( 155 | 7E71F9001C4DDA760015793F /* Sources */, 156 | 7E71F9011C4DDA760015793F /* Frameworks */, 157 | 7E71F9021C4DDA760015793F /* Resources */, 158 | ); 159 | buildRules = ( 160 | ); 161 | dependencies = ( 162 | ); 163 | name = TimingButtonDemo; 164 | productName = TimingButtonDemo; 165 | productReference = 7E71F9041C4DDA760015793F /* TimingButtonDemo.app */; 166 | productType = "com.apple.product-type.application"; 167 | }; 168 | 7E71F91C1C4DDA760015793F /* TimingButtonDemoTests */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = 7E71F9341C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemoTests" */; 171 | buildPhases = ( 172 | 7E71F9191C4DDA760015793F /* Sources */, 173 | 7E71F91A1C4DDA760015793F /* Frameworks */, 174 | 7E71F91B1C4DDA760015793F /* Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | 7E71F91F1C4DDA760015793F /* PBXTargetDependency */, 180 | ); 181 | name = TimingButtonDemoTests; 182 | productName = TimingButtonDemoTests; 183 | productReference = 7E71F91D1C4DDA760015793F /* TimingButtonDemoTests.xctest */; 184 | productType = "com.apple.product-type.bundle.unit-test"; 185 | }; 186 | 7E71F9271C4DDA760015793F /* TimingButtonDemoUITests */ = { 187 | isa = PBXNativeTarget; 188 | buildConfigurationList = 7E71F9371C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemoUITests" */; 189 | buildPhases = ( 190 | 7E71F9241C4DDA760015793F /* Sources */, 191 | 7E71F9251C4DDA760015793F /* Frameworks */, 192 | 7E71F9261C4DDA760015793F /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | 7E71F92A1C4DDA760015793F /* PBXTargetDependency */, 198 | ); 199 | name = TimingButtonDemoUITests; 200 | productName = TimingButtonDemoUITests; 201 | productReference = 7E71F9281C4DDA760015793F /* TimingButtonDemoUITests.xctest */; 202 | productType = "com.apple.product-type.bundle.ui-testing"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 7E71F8FC1C4DDA760015793F /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastUpgradeCheck = 0720; 211 | ORGANIZATIONNAME = "Lance Wu"; 212 | TargetAttributes = { 213 | 7E71F9031C4DDA760015793F = { 214 | CreatedOnToolsVersion = 7.2; 215 | }; 216 | 7E71F91C1C4DDA760015793F = { 217 | CreatedOnToolsVersion = 7.2; 218 | TestTargetID = 7E71F9031C4DDA760015793F; 219 | }; 220 | 7E71F9271C4DDA760015793F = { 221 | CreatedOnToolsVersion = 7.2; 222 | TestTargetID = 7E71F9031C4DDA760015793F; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 7E71F8FF1C4DDA760015793F /* Build configuration list for PBXProject "TimingButtonDemo" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = English; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | en, 232 | Base, 233 | ); 234 | mainGroup = 7E71F8FB1C4DDA760015793F; 235 | productRefGroup = 7E71F9051C4DDA760015793F /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | 7E71F9031C4DDA760015793F /* TimingButtonDemo */, 240 | 7E71F91C1C4DDA760015793F /* TimingButtonDemoTests */, 241 | 7E71F9271C4DDA760015793F /* TimingButtonDemoUITests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 7E71F9021C4DDA760015793F /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 7E71F9171C4DDA760015793F /* LaunchScreen.storyboard in Resources */, 252 | 7E71F9141C4DDA760015793F /* Assets.xcassets in Resources */, 253 | 7E71F9121C4DDA760015793F /* Main.storyboard in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 7E71F91B1C4DDA760015793F /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | 7E71F9261C4DDA760015793F /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXResourcesBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | 7E71F9001C4DDA760015793F /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 7E71F90F1C4DDA760015793F /* ViewController.m in Sources */, 279 | 7E71F93C1C4DDA990015793F /* TimerButton.m in Sources */, 280 | 7E71F90C1C4DDA760015793F /* AppDelegate.m in Sources */, 281 | 7E71F9091C4DDA760015793F /* main.m in Sources */, 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | 7E71F9191C4DDA760015793F /* Sources */ = { 286 | isa = PBXSourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | 7E71F9221C4DDA760015793F /* TimingButtonDemoTests.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 7E71F9241C4DDA760015793F /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 7E71F92D1C4DDA760015793F /* TimingButtonDemoUITests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin PBXTargetDependency section */ 304 | 7E71F91F1C4DDA760015793F /* PBXTargetDependency */ = { 305 | isa = PBXTargetDependency; 306 | target = 7E71F9031C4DDA760015793F /* TimingButtonDemo */; 307 | targetProxy = 7E71F91E1C4DDA760015793F /* PBXContainerItemProxy */; 308 | }; 309 | 7E71F92A1C4DDA760015793F /* PBXTargetDependency */ = { 310 | isa = PBXTargetDependency; 311 | target = 7E71F9031C4DDA760015793F /* TimingButtonDemo */; 312 | targetProxy = 7E71F9291C4DDA760015793F /* PBXContainerItemProxy */; 313 | }; 314 | /* End PBXTargetDependency section */ 315 | 316 | /* Begin PBXVariantGroup section */ 317 | 7E71F9101C4DDA760015793F /* Main.storyboard */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 7E71F9111C4DDA760015793F /* Base */, 321 | ); 322 | name = Main.storyboard; 323 | sourceTree = ""; 324 | }; 325 | 7E71F9151C4DDA760015793F /* LaunchScreen.storyboard */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | 7E71F9161C4DDA760015793F /* Base */, 329 | ); 330 | name = LaunchScreen.storyboard; 331 | sourceTree = ""; 332 | }; 333 | /* End PBXVariantGroup section */ 334 | 335 | /* Begin XCBuildConfiguration section */ 336 | 7E71F92F1C4DDA760015793F /* 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.2; 373 | MTL_ENABLE_DEBUG_INFO = YES; 374 | ONLY_ACTIVE_ARCH = YES; 375 | SDKROOT = iphoneos; 376 | }; 377 | name = Debug; 378 | }; 379 | 7E71F9301C4DDA760015793F /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BOOL_CONVERSION = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INT_CONVERSION = YES; 393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 394 | CLANG_WARN_UNREACHABLE_CODE = YES; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = NO; 398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 399 | ENABLE_NS_ASSERTIONS = NO; 400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_NO_COMMON_BLOCKS = YES; 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 410 | MTL_ENABLE_DEBUG_INFO = NO; 411 | SDKROOT = iphoneos; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 7E71F9321C4DDA760015793F /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 420 | INFOPLIST_FILE = TimingButtonDemo/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 422 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemo; 423 | PRODUCT_NAME = "$(TARGET_NAME)"; 424 | }; 425 | name = Debug; 426 | }; 427 | 7E71F9331C4DDA760015793F /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 431 | INFOPLIST_FILE = TimingButtonDemo/Info.plist; 432 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 433 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemo; 434 | PRODUCT_NAME = "$(TARGET_NAME)"; 435 | }; 436 | name = Release; 437 | }; 438 | 7E71F9351C4DDA760015793F /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | BUNDLE_LOADER = "$(TEST_HOST)"; 442 | INFOPLIST_FILE = TimingButtonDemoTests/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 444 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemoTests; 445 | PRODUCT_NAME = "$(TARGET_NAME)"; 446 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TimingButtonDemo.app/TimingButtonDemo"; 447 | }; 448 | name = Debug; 449 | }; 450 | 7E71F9361C4DDA760015793F /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | BUNDLE_LOADER = "$(TEST_HOST)"; 454 | INFOPLIST_FILE = TimingButtonDemoTests/Info.plist; 455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 456 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemoTests; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TimingButtonDemo.app/TimingButtonDemo"; 459 | }; 460 | name = Release; 461 | }; 462 | 7E71F9381C4DDA760015793F /* Debug */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | INFOPLIST_FILE = TimingButtonDemoUITests/Info.plist; 466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 467 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemoUITests; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | TEST_TARGET_NAME = TimingButtonDemo; 470 | USES_XCTRUNNER = YES; 471 | }; 472 | name = Debug; 473 | }; 474 | 7E71F9391C4DDA760015793F /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | INFOPLIST_FILE = TimingButtonDemoUITests/Info.plist; 478 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 479 | PRODUCT_BUNDLE_IDENTIFIER = Lance.TimingButtonDemoUITests; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | TEST_TARGET_NAME = TimingButtonDemo; 482 | USES_XCTRUNNER = YES; 483 | }; 484 | name = Release; 485 | }; 486 | /* End XCBuildConfiguration section */ 487 | 488 | /* Begin XCConfigurationList section */ 489 | 7E71F8FF1C4DDA760015793F /* Build configuration list for PBXProject "TimingButtonDemo" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 7E71F92F1C4DDA760015793F /* Debug */, 493 | 7E71F9301C4DDA760015793F /* Release */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | 7E71F9311C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemo" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | 7E71F9321C4DDA760015793F /* Debug */, 502 | 7E71F9331C4DDA760015793F /* Release */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | }; 506 | 7E71F9341C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemoTests" */ = { 507 | isa = XCConfigurationList; 508 | buildConfigurations = ( 509 | 7E71F9351C4DDA760015793F /* Debug */, 510 | 7E71F9361C4DDA760015793F /* Release */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | }; 514 | 7E71F9371C4DDA760015793F /* Build configuration list for PBXNativeTarget "TimingButtonDemoUITests" */ = { 515 | isa = XCConfigurationList; 516 | buildConfigurations = ( 517 | 7E71F9381C4DDA760015793F /* Debug */, 518 | 7E71F9391C4DDA760015793F /* Release */, 519 | ); 520 | defaultConfigurationIsVisible = 0; 521 | }; 522 | /* End XCConfigurationList section */ 523 | }; 524 | rootObject = 7E71F8FC1C4DDA760015793F /* Project object */; 525 | } 526 | --------------------------------------------------------------------------------