setValue(_:forUndefinedKey:)
Invoked by Setvalue(_:forkey:) when it finds no property for a given key.
Declaration
func setValue(_ value: Any?, forUndefinedKey key: String)Parameters
- value:
The value for the key identified by
key. - key:
A string that is not equal to the name of any of the receiver’s properties.
Discussion
Subclasses can override this method to handle the request in some other way. The default implementation raises an NSUndefinedKeyException.