encode(_:forKey:)
Encodes a double-precision floating point value and associates it with the string key.
Declaration
func encode(_ value: Double, forKey key: String)Discussion
Subclasses must override this method if they perform keyed coding.
See Also
Related Documentation
Encoding General Data
encodeArray(ofObjCType:count:at:)encode(_:forKey:)encodeBycopyObject(_:)encodeByrefObject(_:)encodeBytes(_:length:)encodeBytes(_:length:forKey:)encodeConditionalObject(_:)encodeConditionalObject(_:forKey:)encode(_:)encode(_:forKey:)encodeCInt(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:)