xib:*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[

在使用xib過程中出現 *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0x150428f90> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key topRound.'

開始檢查了File's Owner 和Class, 都是正確的.然後以爲是拉線拉錯了,反反覆覆拉了幾次,發現了object選項有誤


將其改爲自定義的cell就可以了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章