在使用xib時連線後進行編譯失敗,提示:* Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconView.
如果去掉連線再進行編譯就會編譯成功。
修改方法如下:
在使用xib時連線後進行編譯失敗,提示:* Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconView.
如果去掉連線再進行編譯就會編譯成功。
修改方法如下: