Swift 如何解决 Failed to set user defined inspected 属性 on Please
Swift How to fix Failed to set user defined inspected property on Please
故事板有问题。我安装了这个:https://github.com/okmr-d/DOFavoriteButton 并将所有效果正确地放在按钮中,但现在故事板在控制台中有很多错误,这使得应用程序非常慢。我该如何解决?谢谢!
错误:
> 2015-10-08 19:33:01.629 AppName [45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:01.630 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:01.630 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
我看到另一个按钮(带有 class UIButton)与 DOFavorite class 按钮的键值相同。我删除了它们,现在可以使用了!
由于选择的答案不是很详细,我会把这个留在这里给有类似问题的人。
我遇到了类似的问题,即“无法在 (UITextField) 上设置 (selectedLineColor) 用户定义的检查 属性: [ setValue:forUndefinedKey:]: 这个 class 不是键 selectedLineColor 的键值 coding-compliant。“
问题出在我的一个 UITextField 上,我最初将其 class 设置为 SkyFloatingLabelTextField,并在属性检查器中设置了一些自定义设置。当我删除 class 时,文本字段仍然保留导致错误的自定义设置。
设置是在身份检查器中设置的,在 'User Defined Runtime Attributes' 下。
我删除了框中的密钥,错误消失了。
在我的例子中,错误的模块没有分配到 class 下面。所以,我已经分配了模块并且一切正常。
没有模块分配(错误原因):-
使用模块分配。 (已解决的问题):-
故事板有问题。我安装了这个:https://github.com/okmr-d/DOFavoriteButton 并将所有效果正确地放在按钮中,但现在故事板在控制台中有很多错误,这使得应用程序非常慢。我该如何解决?谢谢!
错误:
> 2015-10-08 19:33:01.629 AppName [45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:01.630 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:01.630 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8a23a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:01.938 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8afbb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.104 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbcec8c3a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.257 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbceacae5c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (imageColorOn) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOn.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (imageColorOff) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageColorOff.
2015-10-08 19:33:02.553 AppName[45857:6557884] Failed to set (duration) user defined inspected property on (UIButton): [<UIButton 0x7fbceadd34a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key duration.
我看到另一个按钮(带有 class UIButton)与 DOFavorite class 按钮的键值相同。我删除了它们,现在可以使用了!
由于选择的答案不是很详细,我会把这个留在这里给有类似问题的人。
我遇到了类似的问题,即“无法在 (UITextField) 上设置 (selectedLineColor) 用户定义的检查 属性: [
问题出在我的一个 UITextField 上,我最初将其 class 设置为 SkyFloatingLabelTextField,并在属性检查器中设置了一些自定义设置。当我删除 class 时,文本字段仍然保留导致错误的自定义设置。
设置是在身份检查器中设置的,在 'User Defined Runtime Attributes' 下。
我删除了框中的密钥,错误消失了。
在我的例子中,错误的模块没有分配到 class 下面。所以,我已经分配了模块并且一切正常。
没有模块分配(错误原因):-
使用模块分配。 (已解决的问题):-