this class is not key value coding-compliant for the key descriptionLable.

       最近在用xib创建自定义view的时候总是报“this class is not key value coding-compliant for the key descriptionLable.”,后来经过查证原来是设置“class”的时候出了错!!!

      对class设置的时候一定要选对地方,要对“view”进行设置,而不是“File's Owner”

错误试图:



正确试图:


你可能感兴趣的:(this class is not key value coding-compliant for the key descriptionLable.)