【发布时间】:2013-05-05 03:48:39
【问题描述】:
当我单击 tableview 行时,我使用以下代码打开 xib
ViewController *List=[[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
[self.navigationController pushViewController:List animated:YES];
我得到了这个异常
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
(0x245e052 0x1731d0a 0x2406a78 0x24069e9 0xbbe7d7 0xbbe9af 0xbbe6b7 0xabf36d 0x966e2c 0x9673a9 0x9675cb 0x967941 0x97947d 0x97966f 0x97993b 0x97a3df 0x97a986 0x97a5a4 0x41b08 0x93171d 0x931952 0x11b986d 0x2432966 0x2432407 0x23957c0 0x2394db4 0x2394ccb 0x391a879 0x391a93e 0x8a1a9b 0x28dd 0x2805)
terminate called throwing an exception(lldb)
【问题讨论】:
-
ViewController 的 viewDidLoad 和 viewWillAppear 方法里面有什么?
-
有默认代码
标签: ios uiviewcontroller uinavigationcontroller xib