我在课堂上使用了几个@IBInspectable 属性,之后我改变了主意并删除了它们。虽然,IB 似乎仍在尝试设置它们,并且每次运行都会生成如下警告:
2015-03-04 11:47:10.288 2D[29075:939900] Failed to set (shapeAsInt) user defined inspected property on (_D.ShapeButton): [<_D.ShapeButton 0x12fe25340> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key shapeAsInt.
2015-03-04 11:47:10.289 2D[29075:939900] Failed to set (colorAsInt) user defined inspected property on (_D.ColorButton): [<_D.ColorButton 0x12fd21800> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key colorAsInt.
虽然日志不会导致应用程序崩溃,但它们非常烦人。
有人遇到过这种情况么?你是怎么修好的?