Closed iltercengiz closed 9 years ago
Hi,
thanks for your thoughts on RMPickerViewController and your PR! Do you know my other control called RMDateSelectionViewController?
The reason why I'm maintaining two controls here, is the delegate problem. Couldn't find a good solution for this :/
Oh my god. I feel so bad right now. :smiley: I know RMPickerViewController for a long time and didn't think of any other options. Now I'm diving into RMDateSelectionViewController. :smiley:
btw, keep up the good work :+1:
I have added UIDatePicker support via a
type
property. In addition to+pickerController;
initialiser method, date picker controller can be created by passingRMPickerTypeDate
to+pickerControllerWithType:
method.+pickerController;
method is still available and defaults toRMPickerTypeNormal
.However, there are a few more things to be done for this feature to be considered completed.
delegate
property can't be set when type isRMPickerTypeDate
. I've limited this becauseRMPickerViewControllerDelegate
protocol also includesUIPickerViewDelegate
andUIPickerViewDataSource
protocols and they are unnecessary forUIDatePicker
. Currently I'm using this version with block based APIs andRMPickerTypeDate
, but it should be prevented to use delegate-based APIs.So you may ask me that why am I sending this PR if this feature is not completed. I'm sending this to ask for help and make an awareness of a feature like this. I'm kind of got stuck with delegate-block based API support for
RMPickerTypeDate
, as I can't decide what to do.If you also give some advices or send another PRs based on this, I'd be happy to help in completing this feature.