奔溃信息
this class is not key value coding-compliant for the key 变量名.'
terminating with uncaught exception of type NSException
(Recorded stack frame)
奔溃原因:1、在xib是添加UI控件后,把xib拖拽到.h或者.m里面正确的应该是如下图所示。
如果会奔溃说明拖拽成了
2、设置xib中的View的Custom Class里面的Class设置是否正确。正确设置如下图。
解决办法:脱线后的Object 默认为File's Owner 只要把它改成对应的UIView就好了。而不要在File's Owner就行。