├── screen1.png ├── Demo ├── AppDelegate.h ├── main.m ├── ViewController.h ├── ViewController.m ├── Resources │ ├── Info.plist │ └── Assets.xcassets │ │ └── AppIcon.appiconset │ │ └── Contents.json ├── Views │ ├── LaunchScreen.storyboard │ └── Main.storyboard └── AppDelegate.m ├── DatePickerDialog.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── .github └── workflows │ └── deploy_cocoapod.yml ├── DatePickerDialog-ObjC.podspec ├── .gitignore ├── Tests ├── Info.plist └── DatePickerDialogTests.m ├── Sources ├── Info.plist ├── LSLDatePickerDialog.h └── LSLDatePickerDialog.m ├── LICENSE └── README.md /screen1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leonluc-dev/DatePickerDialog-iOS-ObjC/HEAD/screen1.png -------------------------------------------------------------------------------- /Demo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import 4 | 5 | @interface AppDelegate : UIResponder 6 | 7 | @property (strong, nonatomic) UIWindow *window; 8 | 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /DatePickerDialog.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/main.m: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Demo/ViewController.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | #import "LSLDatePickerDialog.h" 4 | 5 | @interface ViewController : UIViewController 6 | @property (weak, nonatomic) IBOutlet UITextField *dateTextField; 7 | 8 | - (IBAction)showPickBtnTapped:(id)sender; 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /.github/workflows/deploy_cocoapod.yml: -------------------------------------------------------------------------------- 1 | name: deploy_cocoapod 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | tags: 7 | - '*' 8 | 9 | jobs: 10 | build: 11 | runs-on: macOS-latest 12 | 13 | steps: 14 | - uses: actions/checkout@v4 15 | 16 | - name: Install Cocoapods 17 | run: gem install cocoapods 18 | 19 | # shortcut version 20 | - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 21 | env: 22 | COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} -------------------------------------------------------------------------------- /DatePickerDialog-ObjC.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "DatePickerDialog-ObjC" 3 | s.version = "1.2" 4 | s.summary = "Date picker dialog for iOS" 5 | s.homepage = "https://github.com/leonluc-dev/DatePickerDialog-iOS-ObjC" 6 | s.license = { :type => "MIT", :file => "LICENSE" } 7 | s.author = { "Leon Lucardie" => "leonlucardie@gmail.com" } 8 | s.platform = :ios 9 | s.ios.deployment_target = "12.0" 10 | s.source = { :git => "https://github.com/leonluc-dev/DatePickerDialog-iOS-ObjC.git", :tag => s.version } 11 | s.source_files = "Sources/LSLDatePickerDialog.{h,m}" 12 | s.requires_arc = true 13 | end 14 | 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # Carthage 31 | # 32 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 33 | # Carthage/Checkouts 34 | 35 | Carthage/Build 36 | 37 | # Mac 38 | .DS_Store 39 | -------------------------------------------------------------------------------- /Tests/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 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Sources/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.2 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Tests/DatePickerDialogTests.m: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | @interface DatePickerDialogTests : XCTestCase 5 | 6 | @end 7 | 8 | @implementation DatePickerDialogTests 9 | 10 | - (void)setUp { 11 | [super setUp]; 12 | // Put setup code here. This method is called before the invocation of each test method in the class. 13 | } 14 | 15 | - (void)tearDown { 16 | // Put teardown code here. This method is called after the invocation of each test method in the class. 17 | [super tearDown]; 18 | } 19 | 20 | - (void)testExample { 21 | // This is an example of a functional test case. 22 | // Use XCTAssert and related functions to verify your tests produce the correct results. 23 | } 24 | 25 | - (void)testPerformanceExample { 26 | // This is an example of a performance test case. 27 | [self measureBlock:^{ 28 | // Put the code you want to measure the time of here. 29 | }]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Gameleon12 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Demo/ViewController.m: -------------------------------------------------------------------------------- 1 | 2 | #import "ViewController.h" 3 | 4 | @interface ViewController () 5 | 6 | @end 7 | 8 | @implementation ViewController 9 | 10 | - (void)viewDidLoad { 11 | [super viewDidLoad]; 12 | } 13 | 14 | 15 | - (void)didReceiveMemoryWarning { 16 | [super didReceiveMemoryWarning]; 17 | // Dispose of any resources that can be recreated. 18 | } 19 | 20 | 21 | - (IBAction)showPickBtnTapped:(id)sender { 22 | NSDate* currentDate = [NSDate dateWithTimeIntervalSinceNow:3600 * 24 * 7]; //One week from now 23 | 24 | NSDateComponents* dateComponents = [[NSDateComponents alloc] init]; 25 | dateComponents.year = -3; 26 | NSDate* threeYearsAgo = [[NSCalendar currentCalendar] dateByAddingComponents:dateComponents toDate:currentDate options:0]; 27 | 28 | LSLDatePickerDialog *dialog = [[LSLDatePickerDialog alloc] initWithTextColor:[UIColor redColor] buttonColor:[UIColor redColor] font:[UIFont boldSystemFontOfSize:14.0] locale:nil cancelButton:YES]; 29 | [dialog showWithTitle:@"Demo" doneButtonTitle:@"Done" cancelButtonTitle:@"Cancel" defaultDate:[NSDate date] minimumDate:threeYearsAgo maximumDate:currentDate datePickerMode:UIDatePickerModeDate callback:^(NSDate * _Nullable date) { 30 | if(date) 31 | { 32 | NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; 33 | [formatter setDateStyle:NSDateFormatterLongStyle]; 34 | [formatter setTimeStyle:NSDateFormatterLongStyle]; 35 | [_dateTextField setText:[formatter stringFromDate:date]]; 36 | } 37 | }]; 38 | } 39 | @end 40 | -------------------------------------------------------------------------------- /Demo/Resources/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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | UIInterfaceOrientationPortraitUpsideDown 37 | 38 | UISupportedInterfaceOrientations~ipad 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationPortraitUpsideDown 42 | UIInterfaceOrientationLandscapeLeft 43 | UIInterfaceOrientationLandscapeRight 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Demo/Views/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 | -------------------------------------------------------------------------------- /Demo/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /Demo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | 2 | #import "AppDelegate.h" 3 | 4 | @interface AppDelegate () 5 | 6 | @end 7 | 8 | @implementation AppDelegate 9 | 10 | 11 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 12 | // Override point for customization after application launch. 13 | return YES; 14 | } 15 | 16 | 17 | - (void)applicationWillResignActive:(UIApplication *)application { 18 | // 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. 19 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 20 | } 21 | 22 | 23 | - (void)applicationDidEnterBackground:(UIApplication *)application { 24 | // 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. 25 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 26 | } 27 | 28 | 29 | - (void)applicationWillEnterForeground:(UIApplication *)application { 30 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 31 | } 32 | 33 | 34 | - (void)applicationDidBecomeActive:(UIApplication *)application { 35 | // 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. 36 | } 37 | 38 | 39 | - (void)applicationWillTerminate:(UIApplication *)application { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![CocoaPods](https://img.shields.io/cocoapods/v/DatePickerDialog-ObjC.svg)](https://cocoapods.org/pods/DatePickerDialog-ObjC) 2 | 3 | ## UPDATE: THIS PORT IS NO LONGER ACTIVELY MAINTAINED 4 | 5 | ## A port of the [Swift library](https://www.github.com/squimer/DatePickerDialog-iOS-Swift/) by Squimer 6 | 7 | This port was made so that the features of the DatePickerDialog could be used in a Objective-C project without having to import the Swift runtime in your app binary (which can increase the app binary size quite a bit) 8 | 9 | # DatePickerDialog - iOS - Objective-C 10 | 11 | DatePickerDialog is an iOS drop-in class that displays an UIDatePicker within an UIAlertView. 12 | 13 | [![](https://raw.githubusercontent.com/gameleon-dev/DatePickerDialog-iOS-ObjC/master/screen1.png)](https://github.com/gameleon-dev/DatePickerDialog-iOS-ObjC/tree/master) 14 | 15 | ## Requirements 16 | 17 | DatePickerDialog works on iOS 8, 9 and 10. It depends on the following Apple frameworks, which should already be included with most Xcode templates: 18 | 19 | * Foundation 20 | * UIKit 21 | 22 | ## Installation 23 | #### CocoaPods 24 | You can use [CocoaPods](http://cocoapods.org/) to install `DatePickerDialog-ObjC` by adding it to your `Podfile`: 25 | 26 | ```ruby 27 | platform :ios, '8.0' 28 | pod 'DatePickerDialog-ObjC' 29 | ``` 30 | 31 | To get the full benefits import `LSLDatePickerDialog` wherever you import UIKit 32 | 33 | ``` objective-c 34 | #import 35 | #import "LSLDatePickerDialog.h" 36 | ``` 37 | 38 | #### Manually 39 | 1. Download and drop ```LSLDatePickerDialog.h``` and ```LSLDatePickerDialog.m``` in your project. 40 | 2. Congratulations! 41 | 42 | ## Example 43 | 44 | ```objective-c 45 | #import "LSLDatePickerDialog.h" 46 | 47 | @implementation ViewController { 48 | 49 | 50 | -(void)openDatePicker { 51 | LSLDatePickerDialog *dpDialog = [[LSLDatePickerDialog alloc] init]; 52 | [dpDialog showWithTitle:@"DatePicker" doneButtonTitle:@"Done" cancelButtonTitle:@"Cancel" 53 | defaultDate:[NSDate date] minimumDate:nil maximumDate:nil datePickerMode:UIDatePickerModeDate 54 | callback:^(NSDate * _Nullable date){ 55 | if(date) 56 | { 57 | NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; 58 | [formatter setDateStyle:NSDateFormatterMediumStyle]; 59 | NSLog(@"Date selected: %@",[formatter stringFromDate:date]); 60 | } 61 | } 62 | ]; 63 | } 64 | ``` 65 | 66 | ## Dialog initalizer parameters 67 | - showCancelButton: Bool - default true 68 | - locale: Locale - default nil 69 | 70 | Example initialization without 'Cancel' button: 71 | ```objective-c 72 | LSLDatePickerDialog *dpDialog = [[LSLDatePickerDialog alloc] initWithCancelButton:NO]; 73 | 74 | ``` 75 | Example initialization with locale: 76 | ```objective-c 77 | LSLDatePickerDialog *dpDialog = [[LSLDatePickerDialog alloc] initWithLocale:[Locale localeWithLocaleIdentifier:@“ja_JP”]]; 78 | ``` 79 | 80 | ## Show parameters 81 | 82 | - title: String **(Required)** 83 | - doneButtonTitle: String 84 | - cancelButtonTitle: String 85 | - defaultDate: Date 86 | - minimumDate: Date 87 | - maximumDate: Date 88 | - datePickerMode: UIDatePickerMode **(Required)** 89 | - callback: ((date: Date) -> Void) **(Required)** 90 | 91 | ## Special thanks to 92 | 93 | * [@squimer](https://github.com/squimer) for creating [the Swift version](https://github.com/wimagguc/ios-custom-alertview) of this library, where this library was ported from. 94 | * [@wimagguc](https://github.com/wimagguc) for the work with [ios-custom-alertview](https://github.com/wimagguc/ios-custom-alertview) library. 95 | 96 | ## License 97 | 98 | This code is distributed under the terms and conditions of the [MIT license](LICENSE). 99 | -------------------------------------------------------------------------------- /Sources/LSLDatePickerDialog.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | /** 5 | LSLDatePickerDialog displays an UIDatePicker in a dialog similar in style to UIAlertView/UIAlertController 6 | */ 7 | @interface LSLDatePickerDialog : UIView 8 | typedef void (^DatePickerCallback)(NSDate* __nullable date); 9 | 10 | @property (nonatomic,weak) UIDatePicker* __nullable datePicker; 11 | 12 | /** 13 | Initializes a LSLDatePickerDialog 14 | @param showCancelButton Is the dialog's cancel button visible 15 | */ 16 | - (id _Nonnull)initWithCancelButton:(BOOL)showCancelButton; 17 | 18 | /** 19 | Initializes a LSLDatePickerDialog 20 | @param locale The locale used by the datepicker on the dialog 21 | */ 22 | - (id _Nonnull)initWithLocale:(nullable NSLocale*)locale; 23 | 24 | /** 25 | Initializes a LSLDatePickerDialog 26 | @param showCancelButton Is the dialog's cancel button visible 27 | @param locale The locale used by the datepicker on the dialog 28 | */ 29 | - (id _Nonnull)initWithLocale:(nullable NSLocale*)locale cancelButton:(BOOL)showCancelButton; 30 | 31 | /** 32 | Initializes a LSLDatePickerDialog 33 | @param textColor The text color used by the dialog 34 | @param buttonColor The button color used by the dialog 35 | @param font The font used by the dialog 36 | @param locale The locale used by the datepicker on the dialog 37 | @param showCancelButton Is the dialog's cancel button visible 38 | */ 39 | - (id _Nonnull)initWithTextColor:(nullable UIColor*)textColor buttonColor:(nullable UIColor*)buttonColor font:(nullable UIFont*)font locale:(nullable NSLocale*)locale cancelButton:(BOOL)showCancelButton; 40 | 41 | /** 42 | Shows a LSLDatePickerDialog on the current UIWindow 43 | @param callback The block to execute when the dialog closes. The date parameter will be nil if the cancel button was tapped 44 | */ 45 | - (void)showWithCallback:(nullable DatePickerCallback)callback; 46 | 47 | /** 48 | Shows a LSLDatePickerDialog on the current UIWindow 49 | @param title The title to show on the dialog 50 | @param callback The block to execute when the dialog closes. The date parameter will be nil if the cancel button was tapped 51 | */ 52 | - (void)showWithTitle:(nonnull NSString*)title callback:(nullable DatePickerCallback)callback; 53 | 54 | /** 55 | Shows a LSLDatePickerDialog on the current UIWindow 56 | @param title The title to show on the dialog 57 | @param doneButtonTitle The title to show on the done button of the dialog 58 | @param cancelButtonTitle The title to show on the cancel button of the dialog 59 | @param defaultDate The initially selected date of the dialog 60 | @param datePickerMode The type of information displayed on the dialog's picker 61 | @param callback The block to execute when the dialog closes. The date parameter will be nil if the cancel button was tapped 62 | */ 63 | - (void)showWithTitle:(nonnull NSString*)title doneButtonTitle:(nonnull NSString* )doneButtonTitle cancelButtonTitle:(nonnull NSString*)cancelButtonTitle defaultDate:(nonnull NSDate* )defaultDate datePickerMode:(UIDatePickerMode)datePickerMode callback:(nullable DatePickerCallback)callback; 64 | 65 | /** 66 | Shows a LSLDatePickerDialog on the current UIWindow 67 | @param title The title to show on the dialog 68 | @param doneButtonTitle The title to show on the done button of the dialog 69 | @param cancelButtonTitle The title to show on the cancel button of the dialog 70 | @param defaultDate The initially selected date of the dialog 71 | @param minimumDate The earliest date selectable on the dialog's picker 72 | @param maximumDate The latest date selectable on the dialog's picker 73 | @param datePickerMode The type of information displayed on the dialog's picker 74 | @param callback The block to execute when the dialog closes. The date parameter will be nil if the cancel button was tapped 75 | */ 76 | - (void)showWithTitle:(nonnull NSString*)title doneButtonTitle:(nonnull NSString*)doneButtonTitle cancelButtonTitle:(nonnull NSString*)cancelButtonTitle defaultDate:(nonnull NSDate*)defaultDate minimumDate:(nullable NSDate*)minimumDate maximumDate:(nullable NSDate*)maximumDate datePickerMode:(UIDatePickerMode)datePickerMode callback:(nullable DatePickerCallback)callback; 77 | @end 78 | -------------------------------------------------------------------------------- /Demo/Views/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 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 | -------------------------------------------------------------------------------- /Sources/LSLDatePickerDialog.m: -------------------------------------------------------------------------------- 1 | 2 | #import "LSLDatePickerDialog.h" 3 | 4 | @interface LSLDatePickerDialog() 5 | 6 | 7 | @property (nonatomic,weak) UIView* dialogView; 8 | @property (nonatomic,weak) UILabel* titleLabel; 9 | @property (nonatomic,weak) UIButton* cancelButton; 10 | @property (nonatomic,weak) UIButton* doneButton; 11 | 12 | @property (nonatomic,strong) NSDate* defaultDate; 13 | @property (nonatomic) UIDatePickerMode datePickerMode; 14 | @property (nonatomic,strong) DatePickerCallback callback; 15 | 16 | @property BOOL showCancelButton; 17 | @property (nonatomic,strong) NSLocale *locale; 18 | 19 | @property (nonatomic,strong) UIColor* textColor; 20 | @property (nonatomic,strong) UIColor* buttonColor; 21 | @property (nonatomic,strong) UIFont* font; 22 | @end 23 | 24 | @implementation LSLDatePickerDialog 25 | static CGFloat const kDatePickerDialogDefaultButtonHeight = 50.0; 26 | static CGFloat const kDatePickerDialogDefaultButtonSpacerHeight = 1.0; 27 | static CGFloat const kDatePickerDialogCornerRadius = 7.0; 28 | static NSInteger const kDatePickerDialogDoneButtonTag = 1; 29 | 30 | 31 | -(instancetype)init{ 32 | self = [self initWithCancelButton:YES]; 33 | return self; 34 | } 35 | 36 | -(instancetype)initWithLocale:(NSLocale*)locale{ 37 | self = [self initWithTextColor:nil buttonColor:nil font:nil locale:locale cancelButton:YES]; 38 | return self; 39 | } 40 | 41 | -(instancetype)initWithCancelButton:(BOOL)showCancelButton{ 42 | self = [self initWithTextColor:nil buttonColor:nil font:nil locale:nil cancelButton:showCancelButton]; 43 | return self; 44 | } 45 | 46 | 47 | -(instancetype)initWithLocale:(NSLocale*)locale cancelButton:(BOOL)showCancelButton{ 48 | self = [self initWithTextColor:nil buttonColor:nil font:nil locale:locale cancelButton:showCancelButton]; 49 | return self; 50 | } 51 | 52 | -(instancetype)initWithTextColor:(UIColor*)textColor buttonColor:(UIColor*)buttonColor font:(UIFont*)font locale:(NSLocale*)locale cancelButton:(BOOL)showCancelButton{ 53 | self = [super initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width,UIScreen.mainScreen.bounds.size.height)]; 54 | if(self) 55 | { 56 | self.textColor = textColor ? textColor : [UIColor blackColor]; 57 | self.buttonColor = buttonColor ? buttonColor : [UIColor blueColor]; 58 | self.font = font ? font : [UIFont boldSystemFontOfSize:15.0]; 59 | self.showCancelButton = showCancelButton; 60 | self.locale = locale; 61 | [self setupView]; 62 | } 63 | return self; 64 | } 65 | 66 | - (void)setupView{ 67 | UIView* dialogView = [self createContainerView]; 68 | 69 | dialogView.layer.shouldRasterize = YES; 70 | dialogView.layer.rasterizationScale = [UIScreen mainScreen].scale; 71 | 72 | self.layer.shouldRasterize = YES; 73 | self.layer.rasterizationScale = [UIScreen mainScreen].scale; 74 | 75 | dialogView.layer.opacity = 0.5; 76 | dialogView.layer.transform = CATransform3DMakeScale(1.3, 1.3, 1); 77 | 78 | self.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0]; 79 | 80 | [self addSubview:dialogView]; 81 | self.dialogView = dialogView; 82 | } 83 | 84 | /** Handle device orientation changes */ 85 | - (void)deviceOrientationDidChangeWithNotification:(NSNotification*)notification { 86 | self.frame = CGRectMake(0,0,[UIScreen mainScreen].bounds.size.width,[UIScreen mainScreen].bounds.size.height); 87 | CGSize screenSize = [self countScreenSize]; 88 | CGSize dialogSize = CGSizeMake(300,230 + kDatePickerDialogDefaultButtonHeight + kDatePickerDialogDefaultButtonSpacerHeight); 89 | _dialogView.frame = CGRectMake((screenSize.width - dialogSize.width) / 2,(screenSize.height - dialogSize.height) / 2, dialogSize.width, dialogSize.height); 90 | } 91 | 92 | -(void)showWithCallback:(DatePickerCallback)callback 93 | { 94 | [self showWithTitle:@"DialogPicker" doneButtonTitle:@"Done" cancelButtonTitle:@"Cancel" defaultDate:[NSDate date] minimumDate:nil maximumDate:nil datePickerMode:UIDatePickerModeDateAndTime callback:callback]; 95 | } 96 | 97 | -(void)showWithTitle:(NSString *)title callback:(DatePickerCallback)callback 98 | { 99 | [self showWithTitle:title doneButtonTitle:@"Done" cancelButtonTitle:@"Cancel" defaultDate:[NSDate date] minimumDate:nil maximumDate:nil datePickerMode:UIDatePickerModeDateAndTime callback:callback]; 100 | } 101 | 102 | -(void)showWithTitle:(NSString *)title doneButtonTitle:(NSString *)doneButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle defaultDate:(NSDate *)defaultDate datePickerMode:(UIDatePickerMode)datePickerMode callback:(DatePickerCallback)callback 103 | { 104 | [self showWithTitle:title doneButtonTitle:doneButtonTitle cancelButtonTitle:cancelButtonTitle defaultDate:defaultDate minimumDate:nil maximumDate:nil datePickerMode:datePickerMode callback:callback]; 105 | } 106 | 107 | /** Create the dialog view, and animate opening the dialog */ 108 | - (void)showWithTitle:(NSString*)title doneButtonTitle:(NSString*)doneButtonTitle cancelButtonTitle:(NSString*)cancelButtonTitle defaultDate:(NSDate*)defaultDate minimumDate:(NSDate*)minimumDate maximumDate:(NSDate*)maximumDate datePickerMode:(UIDatePickerMode)datePickerMode callback:(DatePickerCallback)callback { 109 | self.titleLabel.text = title; 110 | [self.doneButton setTitle:doneButtonTitle forState:UIControlStateNormal]; 111 | if(_showCancelButton) 112 | { 113 | [self.cancelButton setTitle:cancelButtonTitle forState:UIControlStateNormal]; 114 | } 115 | self.datePickerMode = datePickerMode; 116 | self.callback = callback; 117 | self.defaultDate = defaultDate; 118 | self.datePicker.datePickerMode = self.datePickerMode; 119 | self.datePicker.date = self.defaultDate ? self.defaultDate : [NSDate date]; 120 | self.datePicker.maximumDate = maximumDate; 121 | self.datePicker.minimumDate = minimumDate; 122 | if(self.locale) { 123 | self.datePicker.locale = self.locale; 124 | } 125 | /* Add dialog to main window */ 126 | id delegate = [UIApplication sharedApplication].delegate; 127 | UIWindow* window = delegate.window; 128 | [window addSubview:self]; 129 | [window bringSubviewToFront:self]; 130 | [window endEditing:YES]; 131 | 132 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChangeWithNotification:) name:UIDeviceOrientationDidChangeNotification object: nil]; 133 | 134 | /* Anim */ 135 | [UIView animateWithDuration:0.2 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ 136 | self.backgroundColor = [UIColor colorWithRed: 0 green: 0 blue: 0 alpha: 0.4]; 137 | self.dialogView.layer.opacity = 1; 138 | self.dialogView.layer.transform = CATransform3DMakeScale(1, 1, 1); 139 | } completion:^(BOOL finished) { 140 | 141 | }]; 142 | } 143 | 144 | /** Dialog close animation then cleaning and removing the view from the parent */ 145 | - (void)close{ 146 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 147 | CATransform3D currentTransform = self.dialogView.layer.transform; 148 | 149 | CGFloat startRotation = [[self valueForKeyPath:@"layer.transform.rotation.z"] doubleValue]; 150 | CATransform3D rotation = CATransform3DMakeRotation((CGFloat)(-startRotation + M_PI * 270 / 180), 0, 0, 0); 151 | 152 | self.dialogView.layer.transform = CATransform3DConcat(rotation, CATransform3DMakeScale(1, 1, 1)); 153 | self.dialogView.layer.opacity = 1; 154 | 155 | [UIView animateWithDuration:0.2 delay:0 options:0 animations:^{ 156 | self.backgroundColor = [UIColor colorWithRed: 0 green: 0 blue: 0 alpha: 0]; 157 | self.dialogView.layer.transform = CATransform3DConcat(currentTransform, CATransform3DMakeScale(0.6, 0.6, 1)); 158 | self.dialogView.layer.opacity = 0; 159 | } completion:^(BOOL finished) { 160 | for(UIView* v in self.subviews) { 161 | [v removeFromSuperview]; 162 | } 163 | 164 | [self removeFromSuperview]; 165 | [self setupView]; 166 | }]; 167 | } 168 | 169 | /** Creates the container view here: create the dialog, then add the custom content and buttons*/ 170 | - (UIView*)createContainerView{ 171 | CGSize screenSize = [self countScreenSize]; 172 | CGSize dialogSize = CGSizeMake(300,230 + kDatePickerDialogDefaultButtonHeight + kDatePickerDialogDefaultButtonSpacerHeight); 173 | 174 | // For the black background 175 | self.frame = CGRectMake(0,0,screenSize.width,screenSize.height); 176 | 177 | // This is the dialog's container; we attach the custom content and the buttons to this one 178 | UIView* dialogContainer = [[UIView alloc] initWithFrame:CGRectMake((screenSize.width - dialogSize.width) / 2.0,(screenSize.height - dialogSize.height) / 2.0,dialogSize.width,dialogSize.height)]; 179 | 180 | // First, we style the dialog to match the iOS8 UIAlertView >>> 181 | CAGradientLayer* gradient = [[CAGradientLayer alloc] initWithLayer:self.layer]; 182 | gradient.frame = dialogContainer.bounds; 183 | gradient.colors = (@[(id)[UIColor colorWithRed:218.0/255.0 green:218.0/255.0 blue:218.0/255.0 alpha:1.0].CGColor, 184 | (id)[UIColor colorWithRed: 233.0/255.0 green: 233.0/255.0 blue: 233.0/255.0 alpha: 1.0].CGColor, 185 | (id)[UIColor colorWithRed: 218.0/255.0 green: 218.0/255.0 blue: 218.0/255.0 alpha: 1.0].CGColor]); 186 | 187 | CGFloat cornerRadius = kDatePickerDialogCornerRadius; 188 | gradient.cornerRadius = cornerRadius; 189 | [dialogContainer.layer insertSublayer:gradient above:0]; 190 | 191 | dialogContainer.layer.cornerRadius = cornerRadius; 192 | dialogContainer.layer.borderColor = [UIColor colorWithRed: 198.0/255.0 green: 198.0/255.0 blue: 198.0/255.0 alpha: 1.0].CGColor; 193 | dialogContainer.layer.borderWidth = 1; 194 | dialogContainer.layer.shadowRadius = cornerRadius + 5.0; 195 | dialogContainer.layer.shadowOpacity = 0.1; 196 | dialogContainer.layer.shadowOffset = CGSizeMake(0 - (cornerRadius + 5.0) / 2.0, 0 - (cornerRadius + 5.0) / 2.0); 197 | dialogContainer.layer.shadowColor = [UIColor blackColor].CGColor; 198 | dialogContainer.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:dialogContainer.bounds cornerRadius:dialogContainer.layer.cornerRadius].CGPath; 199 | 200 | // There is a line above the button 201 | UIView* lineView = [[UIView alloc] initWithFrame:CGRectMake(0,dialogContainer.bounds.size.height - kDatePickerDialogDefaultButtonHeight - kDatePickerDialogDefaultButtonSpacerHeight,dialogContainer.bounds.size.width,kDatePickerDialogDefaultButtonSpacerHeight)]; 202 | lineView.backgroundColor = [UIColor colorWithRed: 198.0/255.0 green: 198.0/255.0 blue: 198.0/255.0 alpha: 1.0]; 203 | [dialogContainer addSubview:lineView]; 204 | 205 | //Title 206 | UILabel* titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10,10,280,30)]; 207 | titleLabel.textAlignment = NSTextAlignmentCenter; 208 | titleLabel.textColor = self.textColor; 209 | titleLabel.font = [self.font fontWithSize:17.0f]; 210 | [dialogContainer addSubview:titleLabel]; 211 | self.titleLabel = titleLabel; 212 | 213 | UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 30, 0, 0)]; 214 | [datePicker setValue:self.textColor forKeyPath:@"textColor"]; 215 | datePicker.autoresizingMask = UIViewAutoresizingFlexibleRightMargin; 216 | CGRect datePickerFrame = datePicker.frame; 217 | datePickerFrame.size.width = 300; 218 | datePickerFrame.size.height = 216; 219 | datePicker.frame = datePickerFrame; 220 | [dialogContainer addSubview:datePicker]; 221 | self.datePicker = datePicker; 222 | 223 | // Add the buttons 224 | [self addButtonsToView:dialogContainer]; 225 | 226 | return dialogContainer; 227 | } 228 | 229 | /** Add buttons to container */ 230 | - (void)addButtonsToView:(UIView*)container { 231 | NSInteger buttonWidth = container.bounds.size.width / 2; 232 | 233 | CGRect leftButtonFrame = CGRectMake(0,container.bounds.size.height - kDatePickerDialogDefaultButtonHeight,buttonWidth,kDatePickerDialogDefaultButtonHeight); 234 | CGRect rightButtonFrame = CGRectMake(buttonWidth,container.bounds.size.height - kDatePickerDialogDefaultButtonHeight,buttonWidth,kDatePickerDialogDefaultButtonHeight); 235 | 236 | if(!_showCancelButton){ 237 | buttonWidth = container.bounds.size.width; 238 | leftButtonFrame = CGRectZero; 239 | rightButtonFrame = CGRectMake(0,container.bounds.size.height - kDatePickerDialogDefaultButtonHeight,buttonWidth,kDatePickerDialogDefaultButtonHeight); 240 | } 241 | UIUserInterfaceLayoutDirection interfaceLayoutDirection = UIApplication.sharedApplication.userInterfaceLayoutDirection; 242 | BOOL isLeftToRightDirection = interfaceLayoutDirection == UIUserInterfaceLayoutDirectionLeftToRight; 243 | if(_showCancelButton) 244 | { 245 | UIButton* cancelButton = [UIButton buttonWithType:UIButtonTypeCustom]; 246 | cancelButton.frame = isLeftToRightDirection ? leftButtonFrame : rightButtonFrame; 247 | [cancelButton setTitleColor:self.buttonColor forState:UIControlStateNormal]; 248 | [cancelButton setTitleColor:self.buttonColor forState:UIControlStateHighlighted]; 249 | cancelButton.titleLabel.font = [self.font fontWithSize:14.0]; 250 | cancelButton.layer.cornerRadius = kDatePickerDialogCornerRadius; 251 | [cancelButton addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside]; 252 | [container addSubview:cancelButton]; 253 | self.cancelButton = cancelButton; 254 | } 255 | 256 | UIButton* doneButton = [UIButton buttonWithType:UIButtonTypeCustom]; 257 | doneButton.frame = isLeftToRightDirection ? rightButtonFrame : leftButtonFrame; 258 | doneButton.tag = kDatePickerDialogDoneButtonTag; 259 | [doneButton setTitleColor:self.buttonColor forState:UIControlStateNormal]; 260 | [doneButton setTitleColor:self.buttonColor forState:UIControlStateHighlighted]; 261 | doneButton.titleLabel.font = [self.font fontWithSize:14.0]; 262 | doneButton.layer.cornerRadius = kDatePickerDialogCornerRadius; 263 | [doneButton addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside]; 264 | [container addSubview:doneButton]; 265 | self.doneButton = doneButton; 266 | } 267 | 268 | /** Selector for button tap */ 269 | - (void)buttonTapped:(UIButton*) sender { 270 | if(sender.tag == kDatePickerDialogDoneButtonTag) { 271 | _callback(self.datePicker.date); 272 | } else { 273 | _callback(nil); 274 | } 275 | 276 | [self close]; 277 | } 278 | 279 | /** Count and return the screen's size */ 280 | - (CGSize)countScreenSize{ 281 | CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width; 282 | CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height; 283 | 284 | return CGSizeMake(screenWidth,screenHeight); 285 | } 286 | 287 | @end 288 | -------------------------------------------------------------------------------- /DatePickerDialog.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7E1896E51D99BD9A00A96FF7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7E1896E31D99BD9A00A96FF7 /* LaunchScreen.storyboard */; }; 11 | 7E1896E61D99BD9A00A96FF7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7E1896E41D99BD9A00A96FF7 /* Main.storyboard */; }; 12 | 7E3CD6751D9993EA002021F2 /* DatePickerDialog.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E3CD66B1D9993EA002021F2 /* DatePickerDialog.framework */; }; 13 | 7E3CD67A1D9993EA002021F2 /* DatePickerDialogTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E3CD6791D9993EA002021F2 /* DatePickerDialogTests.m */; }; 14 | 7E3CD6871D9994AD002021F2 /* LSLDatePickerDialog.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E3CD6851D9994AD002021F2 /* LSLDatePickerDialog.h */; }; 15 | 7E3CD6881D9994AD002021F2 /* LSLDatePickerDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E3CD6861D9994AD002021F2 /* LSLDatePickerDialog.m */; }; 16 | 7E3CD6911D999500002021F2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E3CD6901D999500002021F2 /* main.m */; }; 17 | 7E3CD6941D999500002021F2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E3CD6931D999500002021F2 /* AppDelegate.m */; }; 18 | 7E3CD6971D999500002021F2 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E3CD6961D999500002021F2 /* ViewController.m */; }; 19 | 7E3CD69C1D999500002021F2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7E3CD69B1D999500002021F2 /* Assets.xcassets */; }; 20 | 7E3CD6A41D99963C002021F2 /* DatePickerDialog.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E3CD66B1D9993EA002021F2 /* DatePickerDialog.framework */; }; 21 | 7E3CD6A61D9996EB002021F2 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7E3CD67B1D9993EA002021F2 /* Info.plist */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 7E3CD6761D9993EA002021F2 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = 7E3CD6621D9993EA002021F2 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 7E3CD66A1D9993EA002021F2; 30 | remoteInfo = DatePickerDialog; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 7E1896E31D99BD9A00A96FF7 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; 36 | 7E1896E41D99BD9A00A96FF7 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 37 | 7E3CD66B1D9993EA002021F2 /* DatePickerDialog.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DatePickerDialog.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 7E3CD66F1D9993EA002021F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 7E3CD6741D9993EA002021F2 /* DatePickerDialogTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DatePickerDialogTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 7E3CD6791D9993EA002021F2 /* DatePickerDialogTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DatePickerDialogTests.m; sourceTree = ""; }; 41 | 7E3CD67B1D9993EA002021F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 7E3CD6851D9994AD002021F2 /* LSLDatePickerDialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSLDatePickerDialog.h; sourceTree = ""; }; 43 | 7E3CD6861D9994AD002021F2 /* LSLDatePickerDialog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSLDatePickerDialog.m; sourceTree = ""; }; 44 | 7E3CD68D1D999500002021F2 /* DatePickerDialogExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DatePickerDialogExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 7E3CD6901D999500002021F2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 46 | 7E3CD6921D999500002021F2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 7E3CD6931D999500002021F2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 7E3CD6951D999500002021F2 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 49 | 7E3CD6961D999500002021F2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 50 | 7E3CD69B1D999500002021F2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 7E3CD6A01D999500002021F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 7E3CD6671D9993EA002021F2 /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | 7E3CD6711D9993EA002021F2 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 7E3CD6751D9993EA002021F2 /* DatePickerDialog.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | 7E3CD68A1D999500002021F2 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | 7E3CD6A41D99963C002021F2 /* DatePickerDialog.framework in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 7E1896E11D99BC6B00A96FF7 /* Resources */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 7E3CD6A01D999500002021F2 /* Info.plist */, 85 | 7E3CD69B1D999500002021F2 /* Assets.xcassets */, 86 | ); 87 | path = Resources; 88 | sourceTree = ""; 89 | }; 90 | 7E1896E21D99BC9500A96FF7 /* Views */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 7E1896E31D99BD9A00A96FF7 /* LaunchScreen.storyboard */, 94 | 7E1896E41D99BD9A00A96FF7 /* Main.storyboard */, 95 | ); 96 | path = Views; 97 | sourceTree = ""; 98 | }; 99 | 7E3CD6611D9993EA002021F2 = { 100 | isa = PBXGroup; 101 | children = ( 102 | 7E3CD66D1D9993EA002021F2 /* Sources */, 103 | 7E3CD6781D9993EA002021F2 /* Tests */, 104 | 7E3CD68E1D999500002021F2 /* DatePickerDialogExample */, 105 | 7E3CD66C1D9993EA002021F2 /* Products */, 106 | ); 107 | sourceTree = ""; 108 | }; 109 | 7E3CD66C1D9993EA002021F2 /* Products */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 7E3CD66B1D9993EA002021F2 /* DatePickerDialog.framework */, 113 | 7E3CD6741D9993EA002021F2 /* DatePickerDialogTests.xctest */, 114 | 7E3CD68D1D999500002021F2 /* DatePickerDialogExample.app */, 115 | ); 116 | name = Products; 117 | sourceTree = ""; 118 | }; 119 | 7E3CD66D1D9993EA002021F2 /* Sources */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 7E3CD66F1D9993EA002021F2 /* Info.plist */, 123 | 7E3CD6851D9994AD002021F2 /* LSLDatePickerDialog.h */, 124 | 7E3CD6861D9994AD002021F2 /* LSLDatePickerDialog.m */, 125 | ); 126 | path = Sources; 127 | sourceTree = ""; 128 | }; 129 | 7E3CD6781D9993EA002021F2 /* Tests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 7E3CD6791D9993EA002021F2 /* DatePickerDialogTests.m */, 133 | 7E3CD67B1D9993EA002021F2 /* Info.plist */, 134 | ); 135 | path = Tests; 136 | sourceTree = ""; 137 | }; 138 | 7E3CD68E1D999500002021F2 /* DatePickerDialogExample */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 7E1896E21D99BC9500A96FF7 /* Views */, 142 | 7E1896E11D99BC6B00A96FF7 /* Resources */, 143 | 7E3CD6921D999500002021F2 /* AppDelegate.h */, 144 | 7E3CD6931D999500002021F2 /* AppDelegate.m */, 145 | 7E3CD6951D999500002021F2 /* ViewController.h */, 146 | 7E3CD6961D999500002021F2 /* ViewController.m */, 147 | 7E3CD68F1D999500002021F2 /* Supporting Files */, 148 | ); 149 | name = DatePickerDialogExample; 150 | path = Demo; 151 | sourceTree = ""; 152 | }; 153 | 7E3CD68F1D999500002021F2 /* Supporting Files */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 7E3CD6901D999500002021F2 /* main.m */, 157 | ); 158 | name = "Supporting Files"; 159 | sourceTree = ""; 160 | }; 161 | /* End PBXGroup section */ 162 | 163 | /* Begin PBXHeadersBuildPhase section */ 164 | 7E3CD6681D9993EA002021F2 /* Headers */ = { 165 | isa = PBXHeadersBuildPhase; 166 | buildActionMask = 2147483647; 167 | files = ( 168 | 7E3CD6871D9994AD002021F2 /* LSLDatePickerDialog.h in Headers */, 169 | ); 170 | runOnlyForDeploymentPostprocessing = 0; 171 | }; 172 | /* End PBXHeadersBuildPhase section */ 173 | 174 | /* Begin PBXNativeTarget section */ 175 | 7E3CD66A1D9993EA002021F2 /* DatePickerDialog */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 7E3CD67F1D9993EA002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialog" */; 178 | buildPhases = ( 179 | 7E3CD6661D9993EA002021F2 /* Sources */, 180 | 7E3CD6671D9993EA002021F2 /* Frameworks */, 181 | 7E3CD6681D9993EA002021F2 /* Headers */, 182 | 7E3CD6691D9993EA002021F2 /* Resources */, 183 | ); 184 | buildRules = ( 185 | ); 186 | dependencies = ( 187 | ); 188 | name = DatePickerDialog; 189 | productName = DatePickerDialog; 190 | productReference = 7E3CD66B1D9993EA002021F2 /* DatePickerDialog.framework */; 191 | productType = "com.apple.product-type.framework"; 192 | }; 193 | 7E3CD6731D9993EA002021F2 /* DatePickerDialogTests */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = 7E3CD6821D9993EA002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialogTests" */; 196 | buildPhases = ( 197 | 7E3CD6701D9993EA002021F2 /* Sources */, 198 | 7E3CD6711D9993EA002021F2 /* Frameworks */, 199 | 7E3CD6721D9993EA002021F2 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | 7E3CD6771D9993EA002021F2 /* PBXTargetDependency */, 205 | ); 206 | name = DatePickerDialogTests; 207 | productName = DatePickerDialogTests; 208 | productReference = 7E3CD6741D9993EA002021F2 /* DatePickerDialogTests.xctest */; 209 | productType = "com.apple.product-type.bundle.unit-test"; 210 | }; 211 | 7E3CD68C1D999500002021F2 /* DatePickerDialogExample */ = { 212 | isa = PBXNativeTarget; 213 | buildConfigurationList = 7E3CD6A11D999500002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialogExample" */; 214 | buildPhases = ( 215 | 7E3CD6891D999500002021F2 /* Sources */, 216 | 7E3CD68A1D999500002021F2 /* Frameworks */, 217 | 7E3CD68B1D999500002021F2 /* Resources */, 218 | ); 219 | buildRules = ( 220 | ); 221 | dependencies = ( 222 | ); 223 | name = DatePickerDialogExample; 224 | productName = DatePickerDialogExample; 225 | productReference = 7E3CD68D1D999500002021F2 /* DatePickerDialogExample.app */; 226 | productType = "com.apple.product-type.application"; 227 | }; 228 | /* End PBXNativeTarget section */ 229 | 230 | /* Begin PBXProject section */ 231 | 7E3CD6621D9993EA002021F2 /* Project object */ = { 232 | isa = PBXProject; 233 | attributes = { 234 | LastUpgradeCheck = 0800; 235 | ORGANIZATIONNAME = "gameleon-dev"; 236 | TargetAttributes = { 237 | 7E3CD66A1D9993EA002021F2 = { 238 | CreatedOnToolsVersion = 8.0; 239 | ProvisioningStyle = Automatic; 240 | }; 241 | 7E3CD6731D9993EA002021F2 = { 242 | CreatedOnToolsVersion = 8.0; 243 | ProvisioningStyle = Automatic; 244 | }; 245 | 7E3CD68C1D999500002021F2 = { 246 | CreatedOnToolsVersion = 8.0; 247 | ProvisioningStyle = Automatic; 248 | }; 249 | }; 250 | }; 251 | buildConfigurationList = 7E3CD6651D9993EA002021F2 /* Build configuration list for PBXProject "DatePickerDialog" */; 252 | compatibilityVersion = "Xcode 3.2"; 253 | developmentRegion = English; 254 | hasScannedForEncodings = 0; 255 | knownRegions = ( 256 | en, 257 | Base, 258 | ); 259 | mainGroup = 7E3CD6611D9993EA002021F2; 260 | productRefGroup = 7E3CD66C1D9993EA002021F2 /* Products */; 261 | projectDirPath = ""; 262 | projectRoot = ""; 263 | targets = ( 264 | 7E3CD66A1D9993EA002021F2 /* DatePickerDialog */, 265 | 7E3CD6731D9993EA002021F2 /* DatePickerDialogTests */, 266 | 7E3CD68C1D999500002021F2 /* DatePickerDialogExample */, 267 | ); 268 | }; 269 | /* End PBXProject section */ 270 | 271 | /* Begin PBXResourcesBuildPhase section */ 272 | 7E3CD6691D9993EA002021F2 /* Resources */ = { 273 | isa = PBXResourcesBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | 7E3CD6721D9993EA002021F2 /* Resources */ = { 280 | isa = PBXResourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | 7E3CD6A61D9996EB002021F2 /* Info.plist in Resources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | 7E3CD68B1D999500002021F2 /* Resources */ = { 288 | isa = PBXResourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 7E1896E61D99BD9A00A96FF7 /* Main.storyboard in Resources */, 292 | 7E3CD69C1D999500002021F2 /* Assets.xcassets in Resources */, 293 | 7E1896E51D99BD9A00A96FF7 /* LaunchScreen.storyboard in Resources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | /* End PBXResourcesBuildPhase section */ 298 | 299 | /* Begin PBXSourcesBuildPhase section */ 300 | 7E3CD6661D9993EA002021F2 /* Sources */ = { 301 | isa = PBXSourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | 7E3CD6881D9994AD002021F2 /* LSLDatePickerDialog.m in Sources */, 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | }; 308 | 7E3CD6701D9993EA002021F2 /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 7E3CD67A1D9993EA002021F2 /* DatePickerDialogTests.m in Sources */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 7E3CD6891D999500002021F2 /* Sources */ = { 317 | isa = PBXSourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | 7E3CD6971D999500002021F2 /* ViewController.m in Sources */, 321 | 7E3CD6941D999500002021F2 /* AppDelegate.m in Sources */, 322 | 7E3CD6911D999500002021F2 /* main.m in Sources */, 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | }; 326 | /* End PBXSourcesBuildPhase section */ 327 | 328 | /* Begin PBXTargetDependency section */ 329 | 7E3CD6771D9993EA002021F2 /* PBXTargetDependency */ = { 330 | isa = PBXTargetDependency; 331 | target = 7E3CD66A1D9993EA002021F2 /* DatePickerDialog */; 332 | targetProxy = 7E3CD6761D9993EA002021F2 /* PBXContainerItemProxy */; 333 | }; 334 | /* End PBXTargetDependency section */ 335 | 336 | /* Begin XCBuildConfiguration section */ 337 | 7E3CD67D1D9993EA002021F2 /* Debug */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BOOL_CONVERSION = YES; 347 | CLANG_WARN_CONSTANT_CONVERSION = YES; 348 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 349 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 350 | CLANG_WARN_EMPTY_BODY = YES; 351 | CLANG_WARN_ENUM_CONVERSION = YES; 352 | CLANG_WARN_INFINITE_RECURSION = YES; 353 | CLANG_WARN_INT_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 356 | CLANG_WARN_UNREACHABLE_CODE = YES; 357 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 359 | COPY_PHASE_STRIP = NO; 360 | CURRENT_PROJECT_VERSION = 1; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | VERSIONING_SYSTEM = "apple-generic"; 384 | VERSION_INFO_PREFIX = ""; 385 | }; 386 | name = Debug; 387 | }; 388 | 7E3CD67E1D9993EA002021F2 /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_CONSTANT_CONVERSION = YES; 399 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 400 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 406 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 407 | CLANG_WARN_UNREACHABLE_CODE = YES; 408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 410 | COPY_PHASE_STRIP = NO; 411 | CURRENT_PROJECT_VERSION = 1; 412 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 413 | ENABLE_NS_ASSERTIONS = NO; 414 | ENABLE_STRICT_OBJC_MSGSEND = YES; 415 | GCC_C_LANGUAGE_STANDARD = gnu99; 416 | GCC_NO_COMMON_BLOCKS = YES; 417 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 418 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 419 | GCC_WARN_UNDECLARED_SELECTOR = YES; 420 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 421 | GCC_WARN_UNUSED_FUNCTION = YES; 422 | GCC_WARN_UNUSED_VARIABLE = YES; 423 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 424 | MTL_ENABLE_DEBUG_INFO = NO; 425 | SDKROOT = iphoneos; 426 | TARGETED_DEVICE_FAMILY = "1,2"; 427 | VALIDATE_PRODUCT = YES; 428 | VERSIONING_SYSTEM = "apple-generic"; 429 | VERSION_INFO_PREFIX = ""; 430 | }; 431 | name = Release; 432 | }; 433 | 7E3CD6801D9993EA002021F2 /* Debug */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | CODE_SIGN_IDENTITY = ""; 437 | DEFINES_MODULE = YES; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 441 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 442 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 444 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialog"; 445 | PRODUCT_NAME = "$(TARGET_NAME)"; 446 | SKIP_INSTALL = YES; 447 | }; 448 | name = Debug; 449 | }; 450 | 7E3CD6811D9993EA002021F2 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | CODE_SIGN_IDENTITY = ""; 454 | DEFINES_MODULE = YES; 455 | DYLIB_COMPATIBILITY_VERSION = 1; 456 | DYLIB_CURRENT_VERSION = 1; 457 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 458 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 459 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 460 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 461 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialog"; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SKIP_INSTALL = YES; 464 | }; 465 | name = Release; 466 | }; 467 | 7E3CD6831D9993EA002021F2 /* Debug */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | INFOPLIST_FILE = DatePickerDialogTests/Info.plist; 471 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 472 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialogTests"; 473 | PRODUCT_NAME = "$(TARGET_NAME)"; 474 | }; 475 | name = Debug; 476 | }; 477 | 7E3CD6841D9993EA002021F2 /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | buildSettings = { 480 | INFOPLIST_FILE = DatePickerDialogTests/Info.plist; 481 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 482 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialogTests"; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | }; 485 | name = Release; 486 | }; 487 | 7E3CD6A21D999500002021F2 /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Resources/Info.plist"; 492 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 494 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialogExample"; 495 | PRODUCT_NAME = "$(TARGET_NAME)"; 496 | }; 497 | name = Debug; 498 | }; 499 | 7E3CD6A31D999500002021F2 /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | buildSettings = { 502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 503 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Resources/Info.plist"; 504 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 505 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 506 | PRODUCT_BUNDLE_IDENTIFIER = "gameleon-dev.DatePickerDialogExample"; 507 | PRODUCT_NAME = "$(TARGET_NAME)"; 508 | }; 509 | name = Release; 510 | }; 511 | /* End XCBuildConfiguration section */ 512 | 513 | /* Begin XCConfigurationList section */ 514 | 7E3CD6651D9993EA002021F2 /* Build configuration list for PBXProject "DatePickerDialog" */ = { 515 | isa = XCConfigurationList; 516 | buildConfigurations = ( 517 | 7E3CD67D1D9993EA002021F2 /* Debug */, 518 | 7E3CD67E1D9993EA002021F2 /* Release */, 519 | ); 520 | defaultConfigurationIsVisible = 0; 521 | defaultConfigurationName = Release; 522 | }; 523 | 7E3CD67F1D9993EA002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialog" */ = { 524 | isa = XCConfigurationList; 525 | buildConfigurations = ( 526 | 7E3CD6801D9993EA002021F2 /* Debug */, 527 | 7E3CD6811D9993EA002021F2 /* Release */, 528 | ); 529 | defaultConfigurationIsVisible = 0; 530 | defaultConfigurationName = Release; 531 | }; 532 | 7E3CD6821D9993EA002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialogTests" */ = { 533 | isa = XCConfigurationList; 534 | buildConfigurations = ( 535 | 7E3CD6831D9993EA002021F2 /* Debug */, 536 | 7E3CD6841D9993EA002021F2 /* Release */, 537 | ); 538 | defaultConfigurationIsVisible = 0; 539 | defaultConfigurationName = Release; 540 | }; 541 | 7E3CD6A11D999500002021F2 /* Build configuration list for PBXNativeTarget "DatePickerDialogExample" */ = { 542 | isa = XCConfigurationList; 543 | buildConfigurations = ( 544 | 7E3CD6A21D999500002021F2 /* Debug */, 545 | 7E3CD6A31D999500002021F2 /* Release */, 546 | ); 547 | defaultConfigurationIsVisible = 0; 548 | defaultConfigurationName = Release; 549 | }; 550 | /* End XCConfigurationList section */ 551 | }; 552 | rootObject = 7E3CD6621D9993EA002021F2 /* Project object */; 553 | } 554 | --------------------------------------------------------------------------------