Crash iOS9关闭键盘导致崩溃

Crash iOS9关闭键盘导致崩溃,crash,keyboard,ios9,Crash,Keyboard,Ios9,当我尝试在iOS 9.1模拟器上运行我的应用程序时,我遇到了一个崩溃 Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UIInputWindowController: 0x7ff82b036e00>) 当您self.view.userInteractionEnabled=fal

当我尝试在iOS 9.1模拟器上运行我的应用程序时,我遇到了一个崩溃

Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UIInputWindowController: 0x7ff82b036e00>)
当您
self.view.userInteractionEnabled=false时,也会出现这种情况

我读过类似的文章,但我只有一个根导航控制器

有什么想法吗


iOS 9唯一的错误是UIViewController类别

已重写dealloc方法以清除通知回调

它导致了iOS 9的崩溃。可能是因为[super Dealoc]未被调用(由于ARC限制)


解决方案-将dealloc方法从类别删除到UIViewController子类

我已启用Zombie,这里是我得到的[UIInputWindowController parentViewController]:消息已发送到解除分配的实例0x7f9d29817a00
[self.username resignFirstResponder];