I want to put the RMDateSelectionViewController
component in my project. I want it to appear when the user touches UITextField
. But I'm not getting it, I followed the example code and it did not work.
Follow my code:
- (IBAction)openDateSelectionController:(id)sender {
RMDateSelectionViewController *dateSelectionVC = [RMDateSelectionViewController dateSelectionController];
dateSelectionVC.delegate = self;
[dateSelectionVC show];
dateSelectionVC.datePicker.datePickerMode = UIDatePickerModeDateAndTime;
dateSelectionVC.datePicker.minuteInterval = 5;
dateSelectionVC.datePicker.date = [NSDate dateWithTimeIntervalSinceReferenceDate:0];
}
And the error message:
Error: - [RMDateSelectionViewController showFromViewController:] has been called with an instance of UITableViewController as argument. Showing the date selection view from an instance of UITableViewController is not possible due to some internals of UIKit. To prevent your app from crashing, showing the date selection view controller will be canceled.
Does anyone know how to solve this ??