一个iOS View crash问题
@ 归零 | 星期四,十月 15 日,2015 年 | 1 分钟阅读 | 更新于 星期四,十月 15 日,2015 年

[2015-10-15] 用xib做了一个简单的界面,程序启动时会crash掉,xcode error打印信息:

Terminating app due to uncaught exception ‘UIViewControllerHierarchyInconsistency’, reason: ‘A view can only be associated with at most one view controller at a time! View <UIView: 0x7f914af22610; frame = (0 0; 414 736); autoresize = W+H; layer = <CALayer: 0x7f914af22980» is associated with <UIViewController: 0x7f914ae49a90>. Clear this association before associating this view with <TestViewController: 0x7f914ac7f680>.’

© 2014 - 2022 Lionel's Blog

Powered by Hugo with theme Dream.