"this class is not key value coding-compliant for the key …"問題的解決
此問題 一般都是由interface build與代碼中IBOutlet的連接所引起的妆兑。
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key icon.'
原因:這種錯誤一般是xib拖線刪除了變量捐下,沒有在XIB中刪除