├── .DS_Store ├── README.md ├── DatePicker.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── DatePicker ├── AppDelegate.h ├── main.m ├── ViewController.h ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.m ├── Info.plist ├── AppDelegate.m └── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── .gitignore └── DatePickerTests ├── Info.plist └── DatePickerTests.m /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timleland/Ios-UIDatePicker/master/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ios-UIDatePicker 2 | Sample project on how to open a datepicker from a text field in objective c 3 | 4 | More information here: http://timleland.com/control-datepicker-from-text-field-ios/ 5 | -------------------------------------------------------------------------------- /DatePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DatePicker/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DatePicker 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. 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 | -------------------------------------------------------------------------------- /DatePicker/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DatePicker 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. 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 | -------------------------------------------------------------------------------- /DatePicker/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DatePicker 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | @property (weak, nonatomic) IBOutlet UIDatePicker *datePicker; 13 | @property (weak, nonatomic) IBOutlet UIToolbar *toolbar; 14 | @property (weak, nonatomic) IBOutlet UITextField *textField; 15 | 16 | 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | -------------------------------------------------------------------------------- /DatePickerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /DatePickerTests/DatePickerTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // DatePickerTests.m 3 | // DatePickerTests 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface DatePickerTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation DatePickerTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /DatePicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "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 | } -------------------------------------------------------------------------------- /DatePicker/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // DatePicker 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | 20 | _toolbar.hidden = true; 21 | _datePicker.hidden = true; 22 | 23 | //Needed for textFieldShouldBeginEditing 24 | [_textField setDelegate:self]; 25 | } 26 | 27 | - (void)didReceiveMemoryWarning { 28 | [super didReceiveMemoryWarning]; 29 | // Dispose of any resources that can be recreated. 30 | } 31 | 32 | - (IBAction)textFieldClicked:(id)sender { 33 | NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; 34 | [dateFormatter setDateFormat:@"MM-dd-yy hh:mm a"]; 35 | _textField.text = [NSString stringWithFormat:@"%@", [dateFormatter stringFromDate: _datePicker.date]]; 36 | _datePicker.hidden = false; 37 | _toolbar.hidden = false; 38 | } 39 | 40 | - (IBAction)datePickerChanged:(id)sender { 41 | NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; 42 | [dateFormatter setDateFormat:@"MM-dd-yy hh:mm a"]; 43 | _textField.text = [NSString stringWithFormat:@"%@", [dateFormatter stringFromDate: _datePicker.date]]; 44 | } 45 | 46 | - (IBAction)closeDatePicker:(id)sender { 47 | _datePicker.hidden = true; 48 | _toolbar.hidden = true; 49 | } 50 | 51 | //Needed to prevent keyboard from opening 52 | -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField { 53 | return NO; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /DatePicker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.$(PRODUCT_NAME:rfc1034identifier) 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 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /DatePicker/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DatePicker 4 | // 5 | // Created by Tim Leland on 2/9/15. 6 | // Copyright (c) 2015 Tim Leland. 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 | -------------------------------------------------------------------------------- /DatePicker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /DatePicker/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /DatePicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 228E49691A89A54A00953F7E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 228E49681A89A54A00953F7E /* main.m */; }; 11 | 228E496C1A89A54A00953F7E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 228E496B1A89A54A00953F7E /* AppDelegate.m */; }; 12 | 228E496F1A89A54A00953F7E /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 228E496E1A89A54A00953F7E /* ViewController.m */; }; 13 | 228E49721A89A54A00953F7E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 228E49701A89A54A00953F7E /* Main.storyboard */; }; 14 | 228E49741A89A54A00953F7E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 228E49731A89A54A00953F7E /* Images.xcassets */; }; 15 | 228E49771A89A54A00953F7E /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 228E49751A89A54A00953F7E /* LaunchScreen.xib */; }; 16 | 228E49831A89A54A00953F7E /* DatePickerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 228E49821A89A54A00953F7E /* DatePickerTests.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 228E497D1A89A54A00953F7E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 228E495B1A89A54A00953F7E /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 228E49621A89A54A00953F7E; 25 | remoteInfo = DatePicker; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 228E49631A89A54A00953F7E /* DatePicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DatePicker.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 228E49671A89A54A00953F7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 228E49681A89A54A00953F7E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | 228E496A1A89A54A00953F7E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 34 | 228E496B1A89A54A00953F7E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 35 | 228E496D1A89A54A00953F7E /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 36 | 228E496E1A89A54A00953F7E /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 37 | 228E49711A89A54A00953F7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 228E49731A89A54A00953F7E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 228E49761A89A54A00953F7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 228E497C1A89A54A00953F7E /* DatePickerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DatePickerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 228E49811A89A54A00953F7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 228E49821A89A54A00953F7E /* DatePickerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DatePickerTests.m; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 228E49601A89A54A00953F7E /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | ); 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | 228E49791A89A54A00953F7E /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | /* End PBXFrameworksBuildPhase section */ 61 | 62 | /* Begin PBXGroup section */ 63 | 228E495A1A89A54A00953F7E = { 64 | isa = PBXGroup; 65 | children = ( 66 | 228E49651A89A54A00953F7E /* DatePicker */, 67 | 228E497F1A89A54A00953F7E /* DatePickerTests */, 68 | 228E49641A89A54A00953F7E /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 228E49641A89A54A00953F7E /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 228E49631A89A54A00953F7E /* DatePicker.app */, 76 | 228E497C1A89A54A00953F7E /* DatePickerTests.xctest */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 228E49651A89A54A00953F7E /* DatePicker */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 228E496A1A89A54A00953F7E /* AppDelegate.h */, 85 | 228E496B1A89A54A00953F7E /* AppDelegate.m */, 86 | 228E496D1A89A54A00953F7E /* ViewController.h */, 87 | 228E496E1A89A54A00953F7E /* ViewController.m */, 88 | 228E49701A89A54A00953F7E /* Main.storyboard */, 89 | 228E49731A89A54A00953F7E /* Images.xcassets */, 90 | 228E49751A89A54A00953F7E /* LaunchScreen.xib */, 91 | 228E49661A89A54A00953F7E /* Supporting Files */, 92 | ); 93 | path = DatePicker; 94 | sourceTree = ""; 95 | }; 96 | 228E49661A89A54A00953F7E /* Supporting Files */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 228E49671A89A54A00953F7E /* Info.plist */, 100 | 228E49681A89A54A00953F7E /* main.m */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | 228E497F1A89A54A00953F7E /* DatePickerTests */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 228E49821A89A54A00953F7E /* DatePickerTests.m */, 109 | 228E49801A89A54A00953F7E /* Supporting Files */, 110 | ); 111 | path = DatePickerTests; 112 | sourceTree = ""; 113 | }; 114 | 228E49801A89A54A00953F7E /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 228E49811A89A54A00953F7E /* Info.plist */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 228E49621A89A54A00953F7E /* DatePicker */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 228E49861A89A54A00953F7E /* Build configuration list for PBXNativeTarget "DatePicker" */; 128 | buildPhases = ( 129 | 228E495F1A89A54A00953F7E /* Sources */, 130 | 228E49601A89A54A00953F7E /* Frameworks */, 131 | 228E49611A89A54A00953F7E /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = DatePicker; 138 | productName = DatePicker; 139 | productReference = 228E49631A89A54A00953F7E /* DatePicker.app */; 140 | productType = "com.apple.product-type.application"; 141 | }; 142 | 228E497B1A89A54A00953F7E /* DatePickerTests */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 228E49891A89A54A00953F7E /* Build configuration list for PBXNativeTarget "DatePickerTests" */; 145 | buildPhases = ( 146 | 228E49781A89A54A00953F7E /* Sources */, 147 | 228E49791A89A54A00953F7E /* Frameworks */, 148 | 228E497A1A89A54A00953F7E /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | 228E497E1A89A54A00953F7E /* PBXTargetDependency */, 154 | ); 155 | name = DatePickerTests; 156 | productName = DatePickerTests; 157 | productReference = 228E497C1A89A54A00953F7E /* DatePickerTests.xctest */; 158 | productType = "com.apple.product-type.bundle.unit-test"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | 228E495B1A89A54A00953F7E /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastUpgradeCheck = 0610; 167 | ORGANIZATIONNAME = "Tim Leland"; 168 | TargetAttributes = { 169 | 228E49621A89A54A00953F7E = { 170 | CreatedOnToolsVersion = 6.1.1; 171 | }; 172 | 228E497B1A89A54A00953F7E = { 173 | CreatedOnToolsVersion = 6.1.1; 174 | TestTargetID = 228E49621A89A54A00953F7E; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 228E495E1A89A54A00953F7E /* Build configuration list for PBXProject "DatePicker" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 228E495A1A89A54A00953F7E; 187 | productRefGroup = 228E49641A89A54A00953F7E /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 228E49621A89A54A00953F7E /* DatePicker */, 192 | 228E497B1A89A54A00953F7E /* DatePickerTests */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 228E49611A89A54A00953F7E /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | 228E49721A89A54A00953F7E /* Main.storyboard in Resources */, 203 | 228E49771A89A54A00953F7E /* LaunchScreen.xib in Resources */, 204 | 228E49741A89A54A00953F7E /* Images.xcassets in Resources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | 228E497A1A89A54A00953F7E /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXResourcesBuildPhase section */ 216 | 217 | /* Begin PBXSourcesBuildPhase section */ 218 | 228E495F1A89A54A00953F7E /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | 228E496F1A89A54A00953F7E /* ViewController.m in Sources */, 223 | 228E496C1A89A54A00953F7E /* AppDelegate.m in Sources */, 224 | 228E49691A89A54A00953F7E /* main.m in Sources */, 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | 228E49781A89A54A00953F7E /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 228E49831A89A54A00953F7E /* DatePickerTests.m in Sources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | /* End PBXSourcesBuildPhase section */ 237 | 238 | /* Begin PBXTargetDependency section */ 239 | 228E497E1A89A54A00953F7E /* PBXTargetDependency */ = { 240 | isa = PBXTargetDependency; 241 | target = 228E49621A89A54A00953F7E /* DatePicker */; 242 | targetProxy = 228E497D1A89A54A00953F7E /* PBXContainerItemProxy */; 243 | }; 244 | /* End PBXTargetDependency section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 228E49701A89A54A00953F7E /* Main.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 228E49711A89A54A00953F7E /* Base */, 251 | ); 252 | name = Main.storyboard; 253 | sourceTree = ""; 254 | }; 255 | 228E49751A89A54A00953F7E /* LaunchScreen.xib */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 228E49761A89A54A00953F7E /* Base */, 259 | ); 260 | name = LaunchScreen.xib; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXVariantGroup section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 228E49841A89A54A00953F7E /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | ALWAYS_SEARCH_USER_PATHS = NO; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BOOL_CONVERSION = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 277 | CLANG_WARN_EMPTY_BODY = YES; 278 | CLANG_WARN_ENUM_CONVERSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | ENABLE_STRICT_OBJC_MSGSEND = YES; 286 | GCC_C_LANGUAGE_STANDARD = gnu99; 287 | GCC_DYNAMIC_NO_PIC = NO; 288 | GCC_OPTIMIZATION_LEVEL = 0; 289 | GCC_PREPROCESSOR_DEFINITIONS = ( 290 | "DEBUG=1", 291 | "$(inherited)", 292 | ); 293 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 301 | MTL_ENABLE_DEBUG_INFO = YES; 302 | ONLY_ACTIVE_ARCH = YES; 303 | SDKROOT = iphoneos; 304 | TARGETED_DEVICE_FAMILY = "1,2"; 305 | }; 306 | name = Debug; 307 | }; 308 | 228E49851A89A54A00953F7E /* Release */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | ALWAYS_SEARCH_USER_PATHS = NO; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 319 | CLANG_WARN_EMPTY_BODY = YES; 320 | CLANG_WARN_ENUM_CONVERSION = YES; 321 | CLANG_WARN_INT_CONVERSION = YES; 322 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 323 | CLANG_WARN_UNREACHABLE_CODE = YES; 324 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 325 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 326 | COPY_PHASE_STRIP = YES; 327 | ENABLE_NS_ASSERTIONS = NO; 328 | ENABLE_STRICT_OBJC_MSGSEND = YES; 329 | GCC_C_LANGUAGE_STANDARD = gnu99; 330 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 331 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 332 | GCC_WARN_UNDECLARED_SELECTOR = YES; 333 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 334 | GCC_WARN_UNUSED_FUNCTION = YES; 335 | GCC_WARN_UNUSED_VARIABLE = YES; 336 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 337 | MTL_ENABLE_DEBUG_INFO = NO; 338 | SDKROOT = iphoneos; 339 | TARGETED_DEVICE_FAMILY = "1,2"; 340 | VALIDATE_PRODUCT = YES; 341 | }; 342 | name = Release; 343 | }; 344 | 228E49871A89A54A00953F7E /* Debug */ = { 345 | isa = XCBuildConfiguration; 346 | buildSettings = { 347 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 348 | INFOPLIST_FILE = DatePicker/Info.plist; 349 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 350 | PRODUCT_NAME = "$(TARGET_NAME)"; 351 | }; 352 | name = Debug; 353 | }; 354 | 228E49881A89A54A00953F7E /* Release */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 358 | INFOPLIST_FILE = DatePicker/Info.plist; 359 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 360 | PRODUCT_NAME = "$(TARGET_NAME)"; 361 | }; 362 | name = Release; 363 | }; 364 | 228E498A1A89A54A00953F7E /* Debug */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | BUNDLE_LOADER = "$(TEST_HOST)"; 368 | FRAMEWORK_SEARCH_PATHS = ( 369 | "$(SDKROOT)/Developer/Library/Frameworks", 370 | "$(inherited)", 371 | ); 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | INFOPLIST_FILE = DatePickerTests/Info.plist; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 378 | PRODUCT_NAME = "$(TARGET_NAME)"; 379 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DatePicker.app/DatePicker"; 380 | }; 381 | name = Debug; 382 | }; 383 | 228E498B1A89A54A00953F7E /* Release */ = { 384 | isa = XCBuildConfiguration; 385 | buildSettings = { 386 | BUNDLE_LOADER = "$(TEST_HOST)"; 387 | FRAMEWORK_SEARCH_PATHS = ( 388 | "$(SDKROOT)/Developer/Library/Frameworks", 389 | "$(inherited)", 390 | ); 391 | INFOPLIST_FILE = DatePickerTests/Info.plist; 392 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 393 | PRODUCT_NAME = "$(TARGET_NAME)"; 394 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DatePicker.app/DatePicker"; 395 | }; 396 | name = Release; 397 | }; 398 | /* End XCBuildConfiguration section */ 399 | 400 | /* Begin XCConfigurationList section */ 401 | 228E495E1A89A54A00953F7E /* Build configuration list for PBXProject "DatePicker" */ = { 402 | isa = XCConfigurationList; 403 | buildConfigurations = ( 404 | 228E49841A89A54A00953F7E /* Debug */, 405 | 228E49851A89A54A00953F7E /* Release */, 406 | ); 407 | defaultConfigurationIsVisible = 0; 408 | defaultConfigurationName = Release; 409 | }; 410 | 228E49861A89A54A00953F7E /* Build configuration list for PBXNativeTarget "DatePicker" */ = { 411 | isa = XCConfigurationList; 412 | buildConfigurations = ( 413 | 228E49871A89A54A00953F7E /* Debug */, 414 | 228E49881A89A54A00953F7E /* Release */, 415 | ); 416 | defaultConfigurationIsVisible = 0; 417 | }; 418 | 228E49891A89A54A00953F7E /* Build configuration list for PBXNativeTarget "DatePickerTests" */ = { 419 | isa = XCConfigurationList; 420 | buildConfigurations = ( 421 | 228E498A1A89A54A00953F7E /* Debug */, 422 | 228E498B1A89A54A00953F7E /* Release */, 423 | ); 424 | defaultConfigurationIsVisible = 0; 425 | }; 426 | /* End XCConfigurationList section */ 427 | }; 428 | rootObject = 228E495B1A89A54A00953F7E /* Project object */; 429 | } 430 | --------------------------------------------------------------------------------