XXNibBridge icon indicating copy to clipboard operation
XXNibBridge copied to clipboard

出现 this class is not key value coding-compliant for the key xxx 问题与解决记录

Open wonderffee opened this issue 5 years ago • 0 comments

今天遇到这个问题,好一顿定位,记录一下解决办法,供后人参考。 出现这个问题一般是粗心所致,以TestView.xib为例,有此问题时请检查一下你是不是在TestView.xib中将File's owner 的Custom Class 设置为了TestView,正确的设置是将xib中的root View 的Custom Class 设置为TestView,重新设置后更新一下IBOutlet与IBAction,应该就能解决这个问题。 另外要注意重新设置后 File's owner 的Custom Class 要重置为空,要不然还是有同样的报错。

wonderffee avatar May 08 '19 07:05 wonderffee