CRASH: An instance 0x7996e000 of class UISearchResultsTableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x78fcb720> (
<NSKeyValueObservance 0x78febe10: Observer: 0x0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x78ff2280>
<NSKeyValueObservance 0x78ffbe10: Observer: 0x0, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x78fc2dd0>
以上是我控制台的错误信息。 它只能在 ios8 上不断重现,而 ios7 运行良好。我的代码中没有添加KVO,也没有使用Autolayout。基本上,我单击搜索栏,输入一些字符,然后在结果表出现后单击取消,然后,当我单击后退按钮到上一个视图时,它会崩溃。
有人可以帮我吗? 提前谢谢!