value(forUndefinedKey:)
Invoked by Value(forkey:) when it finds no property corresponding to a given key.
Declaration
func value(forUndefinedKey key: String) -> Any?Parameters
- key:
A string that is not equal to the name of any of the receiver’s properties.
Discussion
Subclasses can override this method to return an alternate value for undefined keys. The default implementation raises an NSUndefinedKeyException.