I have a UIDatePicker in my storyboard view associated with an IBOutlet in the header file.
In the implementation file, I set some properties in the collector and then assigned it to my text fields:
[self.txtEndDate setInputView:self.picker]
This works fine in iOS 7, but with iOS 8 it gives me the following error:
Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputViewController: 0x7c2d8800> should have parent view controller:<InserimentoDurata: 0x7aec2b10> but requested parent is:<UIInputWindowController: 0x7b92b400>'
Any idea on how to fix this?
source share