【发布时间】:2014-09-20 16:42:46
【问题描述】:
我的故事板视图中有一个 UIDatePicker,连接到头文件中的 IBOutlet。
在实现文件中,我为选择器设置了一些属性,然后将其分配给我的文本字段:
[self.txtEndDate setInputView:self.picker];
这在 iOS 7 中运行良好,但在 iOS 8 中它给了我以下错误:
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>'
知道如何解决这个问题吗?
【问题讨论】:
标签: ios8 uidatepicker