Trapped uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller
2017-07-04 15:42
1846 查看
Trapped uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputViewController: 0x109d56710> should have parent view controller:<ViewController: 0x109ec7080> but requested parent is:<UIInputWindowController:
0x10a2f2400>'
莫名其妙的出现了一次取消键盘事件时候奔溃到 [_numTextField endEditing:YES];这行代码,首先说一下视图结构,我在一个UIView的属性上放了一个UITextField,这个UIView的对象名叫inputview。之后就在stack overflow查了一圈,最后定位到是名字起的有问题,导致在关闭键盘的时候奔溃。。。。
0x10a2f2400>'
莫名其妙的出现了一次取消键盘事件时候奔溃到 [_numTextField endEditing:YES];这行代码,首先说一下视图结构,我在一个UIView的属性上放了一个UITextField,这个UIView的对象名叫inputview。之后就在stack overflow查了一圈,最后定位到是名字起的有问题,导致在关闭键盘的时候奔溃。。。。
相关文章推荐
- Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x19862
- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x7
- Terminating app due to uncaught exception 'NSUnknownKeyException' reason: '[<ViewController 0x19862
- 解决IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter
- 滑动RecyclerView时出现异常: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 6(offset:6).state:30
- *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not
- Warning: Attempt to present BBBViewController on AAAViewController whose view is not in the window hierarchy!
- UIViewController 的addChildViewController:(UIViewController *) 方法
- 成功解决RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- UIViewControllerHierarchyInconsistencyException异常
- 处理iOS报错: Warning “attempt to present ViewController whose view is not in the window hierarchy”
- Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFArra
- 【转载】Android RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewContr
- ndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of ro
- Terminating app due to uncaught exception 'NSInternalInconsistency
- * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '* -[NSCFArr
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position