phonegap/phonegap-plugins — pull request #363 by samsoir (2012-02-22 22:14:14+00:00)
Title: Refactored iOS DatePicker plugin

This is a major refactor of the iOS DatePicker plugin to make it play nice with iOS. The previous version was not implementing the standard Objective-C patterns for memory management or delegation. This refactor provides the following;

- Better memory management of all native iOS components (not using ARC)
- Uses the UIActionSheetDelegate protocol to send selected date back to PhoneGap
- Unloads the logic from the Back button segmented control
- Uses ISO standard dates for communication between Objective C and JS to ensure no ambiguity
- If no _mode_ is sent to the control, UIDatePickerModeDateAndTime is used