"this class is not key value coding-compliant for the key …"問題的解決
此問題 一般都是由interface build與代碼中IBOutlet的連接所引起的。
可能是在代碼中對iboutlet的名稱進行了修改,導致interface build中的連接實效。
如果在該viewcontroller連接的xib文件中沒發現錯誤,
那就很可能是mainWindow.xib文件中存在問題.
我就遇到了重新新建自定義的cell類文件的時候,忘記把上個cell的連線刪除,在網上找了一些問題的原因.分享給大家
http://stackoverflow.com/questions/3088059/what-does-this-mean-nsunknownkeyexception-reason-this-class-is-not-key