中有视图中的三个textFields
,如下图所示在图像:应用程序崩溃为[的UITextField resignFirstResponder]
当我点击这些文本框的一个,一个textField
可以becomeFirstResponder
,则键盘出现了,没有崩溃。 当我点击'完成'或使这些文本框中的一个 resignFirstResponder
时,键盘将消失。但当 键盘消失时,我的应用程序崩溃它。
错误:
iOS 8: [UICompatibilityInputViewController isKindOfClass:]: message sent to deallocated instance 0x7fd6b6074dd0
iOS 9: [UIInputWindowController parentViewController]: message sent to deallocated instance 0x7fde7c004400
iOS 10: [UICompatibilityInputViewController retain]...
添加相关的代码,请 – Jens
我们不知道什么UICompatibilityInputViewController和UIInputWindowController是。他们可以食用吗? –
检查您的textFieldShouldReturn(_ :)方法在其中执行一些操作。 – Sommm