An UIDatePicker replacement with custom Background and Selector Styles. (As seen in nextr)
##Preview
- customize the Look and Feel of your UIDatePicker in order to suit your App Design
- change Background of each Component either with UIColor or an UIView
- change and style the Date Selector Overlay (again with UIColor or an UIView)
- Add
MWDatePicker.h
andMWDatePicker.m
to your project - Add
QuartzCore.framework
to your project
- iOS 6.0 and greater
- ARC
- Add 'MWDatePicker.h' to your ViewController
- Add 'MWPickerDelegate' to your Class
- Implement MWDatePicker Delegate Methods
-
(void)datePicker:(MWDatePicker *)picker didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
-
(void)datePicker:(MWDatePicker *)picker didClickRow:(NSInteger)row inComponent:(NSInteger)component;
-
(UIView *)backgroundViewForDatePicker:(MWDatePicker *)picker;
-
(UIColor *)backgroundColorForDatePicker:(MWDatePicker *)picker;
-
(UIView *)datePicker:(MWDatePicker *)picker backgroundViewForComponent:(NSInteger)component;
-
(UIColor *)datePicker:(MWDatePicker *)picker backgroundColorForComponent:(NSInteger)component;
-
(UIView *)overlayViewForDatePickerSelector:(MWDatePicker *)picker;
-
(UIColor *)overlayColorForDatePickerSelector:(MWDatePicker *)picker;
-
(UIView *)viewForDatePickerSelector:(MWDatePicker *)picker;
-
(UIColor *)viewColorForDatePickerSelector:(MWDatePicker *)picker;
The base of MWDatePicker is used from keeshux
MWDatePicker was created by Marcus Wermuth in the development of nextr.
MWDatePicker is available under the MIT license. See the LICENSE file for more info.