ios - 调用 resignFirstResponder 时,什么会导致间歇性 NSInternalInconsistencyException?

标签 ios ios7

感谢 Crashlytics,我收到了有关我的应用程序在调用 resignFirstResponder 时崩溃的报告。崩溃是由于 NSInternalInconsistencyException 和消息“我们从未正确设置以在该文档中流式传输”。崩溃似乎只发生在 iOS7 上,在 iPhone 和 iPad 上。该应用程序不是基于文档的,所以我觉得消息中提到的文档令人困惑。到目前为止,我一直无法在设备或模拟器中重现该问题。不幸的是,谷歌搜索错误消息没有结果。崩溃总是发生在主线程上,堆栈总是显示为:

0    CoreFoundation  __exceptionPreprocess + 130
1    libobjc.A.dylib objc_exception_throw + 38
2    CoreFoundation  +[NSException raise:format:]
3    Foundation      -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 90
4    UIKit           -[UIDictationTestOps willEndEditingInInputDelegate:] + 138
5    UIKit           +[UIDictationController keyboardWillChangeFromDelegate:toDelegate:] + 136
6    UIKit           -[UIKeyboardImpl setDelegate:force:] + 206
7    UIKit           -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 784
8    UIKit           -[UIResponder _finishResignFirstResponder] + 136
9    UIKit           -[UIResponder resignFirstResponder] + 250
...

可能导致问题的原因是什么,探索重现问题的好途径是什么?

最佳答案

当使用 UIKeyInput 进行文本输入时,每次点击听写按钮然后关闭键盘时都会出现此错误。不过,仍在寻找修复它的方法(或仅禁用听写的方法)。

关于ios - 调用 resignFirstResponder 时,什么会导致间歇性 NSInternalInconsistencyException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19010050/

相关文章:

ios - URL 没有完全加载到我的 iOS 中的 UIWebView 上?

ios - 以编程方式模仿 iPad 上 iPhone 应用程序的 2x 模式(或双比例)?

ios - 如何使用 ARkit 在增强现实应用程序中关闭/打开 AR?

ios - 从应用商店打开时应用挂起

iphone - Viewcontroller 失败所以调用另一个 Viewcontroller - Objective-c

objective-c - 通过 UISplitViewController 的 iOS 7 导航栏显示褪色的灰色 View

c# - 在多个平台上使用.NET DLL

ios - 使用 JSON 的 uitableview 部分出现问题

objective-c - Apple 是否有 API 可用于请求和发送我所连接的 wifi MAC 地址?

ios - 如何防止 UINavigationBar 在 iOS 7 中覆盖 View 顶部?