NSInvalidUnarchiveOperationException:'无法实例化名为_UITableViewCellSeparatorView的类' [英] NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView'
问题描述
在Xcode更新(5.1)之后,当我尝试在iOS 6.x中运行时,我的应用程序崩溃了.
After Xcode Update (5.1) my app crashes when i try to run in iOS 6.x.
我有一个应用程序,其中有一个自定义单元格和约束.
I have an app where I have a custom cell and constraints.
未选中xib文件的自动布局.我得到的错误是:
Auto layout is unchecked for the xib file. The error I get is:
***由于未捕获的异常'NSInvalidUnarchiveOperationException'而终止应用程序,原因:'无法实例化 名为_UITableViewCellSeparatorView的类
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITableViewCellSeparatorView'
我仅在另一个论坛中找到关于此问题的一个线索,但没有解决方案,只是我也做了一个测试,却得到了相同的错误.
I only found one thread about this issue in another forum, but without a solution, just a test that I've done too and got the same error.
推荐答案
更新到Xcode 5.1后,我遇到了同样的错误.
I was getting the same error after updating to Xcode 5.1.
我可以通过编辑自定义单元的xib来消除错误.
I was able to get rid of the error by editing the xib for my custom cell.
在文件检查器的Interface Builder文档中,我将查看方式"切换为"iOS 6.1及更早版本".我还将构建版本"设置为"iOS 6.0及更高版本".
Under Interface Builder Document in the file inspector, I switched "View as" to "iOS 6.1 and Earlier". I also have "Builds for" set to "iOS 6.0 and Later".
这篇关于NSInvalidUnarchiveOperationException:'无法实例化名为_UITableViewCellSeparatorView的类'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!