Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alikaragoz/AIDatePickerController
:date: UIDatePicker modally presented with iOS 7 custom transitions.
https://github.com/alikaragoz/AIDatePickerController
Last synced: 6 days ago
JSON representation
:date: UIDatePicker modally presented with iOS 7 custom transitions.
- Host: GitHub
- URL: https://github.com/alikaragoz/AIDatePickerController
- Owner: alikaragoz
- License: mit
- Archived: true
- Created: 2013-11-06T21:49:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T05:55:56.000Z (over 7 years ago)
- Last Synced: 2024-08-16T04:31:29.992Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 596 KB
- Stars: 90
- Watchers: 3
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - AIDatePickerController - :date: UIDatePicker modally presented with iOS 7 custom transitions. (UI / PickerView)
- awesome-ios-star - AIDatePickerController - :date: UIDatePicker modally presented with iOS 7 custom transitions. (UI / PickerView)
README
AIDatePickerController
--------------------## Installation
#### Manually
1. Download and drop ```/AIDatePickerController```folder in your project.
2. Congratulations!## Usage
```objc
// Create a date
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd"];
NSDate *date = [dateFormatter dateFromString:@"1955-02-24"];// Create an instance of the picker
AIDatePickerController *datePickerViewController = [AIDatePickerController pickerWithDate:date selectedBlock:^(NSDate *selectedDate) {
// Do what you want with the picked date.
} cancelBlock:^{
// Do what you want when the user pressed the cancel button.
}];// Present it
[self presentViewController:datePickerViewController animated:YES completion:nil];
```## Requirements
- iOS >= 7.0
- ARC## Credits
Inspired by **Roland Moers**'s [RMDateSelectionViewController](https://github.com/CooperRS/RMDateSelectionViewController).## Contact
Ali Karagoz
- http://github.com/alikaragoz
- http://twitter.com/alikaragoz## License
AIDatePickerController is available under the MIT license. See the LICENSE file for more info.