0
I want to put the component RMDateSelectionViewController
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 didn’t work.
Follows 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 controller 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.
Someone knows how to fix this??
Rafael, that’s right. I’m going to search another component to test here.
– Greg