且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么我的对象不是键值编码兼容?

更新时间:2023-01-23 17:28:49

Make sure whatever class engine belongs to implements a horsePower property, and/or has a horsePower instance variable, and/or manually implements setHorsePower: and horsePower methods.

You are getting the error because you're trying to set the value of the horsePower key but engine's class does not properly implement a way to set the horsePower key.